Skip to content

Commit 513b3b9

Browse files
committed
fix: correct the use of variables
1 parent 8d929db commit 513b3b9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/font/fontlibrary.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ static int LCUIFont_LoadFileEx(LCUI_FontEngine *engine, const char *file)
628628
if (!engine) {
629629
return -1;
630630
}
631-
num_fonts = fontlib.engine->open(file, &fonts);
631+
num_fonts = engine->open(file, &fonts);
632632
if (num_fonts < 1) {
633633
Logger_Debug("[font] failed to load file: %s\n", file);
634634
return -2;

src/graph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ int Graph_Create(LCUI_Graph *graph, unsigned width, unsigned height)
742742
_DEBUG_MSG("graph size is too large!");
743743
abort();
744744
}
745-
if (width < 1 || width < 1) {
745+
if (width < 1 || height < 1) {
746746
Graph_Free(graph);
747747
return -1;
748748
}

0 commit comments

Comments
 (0)