Skip to content

Commit 7b6f974

Browse files
committed
Changed types from int to bool.
1 parent 98f08d4 commit 7b6f974

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎source/guidriver.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -549,10 +549,10 @@ int guidriver_setfont(struct nk_context *ctx, int type)
549549
return prev;
550550
}
551551

552-
int guidriver_appsize(int *width, int *height)
552+
bool guidriver_appsize(int *width, int *height)
553553
{
554554
glfwGetWindowSize(winApp, width, height);
555-
return 1;
555+
return true;
556556
}
557557

558558
void guidriver_render(struct nk_color clear)
@@ -571,14 +571,14 @@ void guidriver_render(struct nk_color clear)
571571
glfwSwapBuffers(winApp);
572572
}
573573

574-
int guidriver_poll(int waitidle)
574+
bool guidriver_poll(bool waitidle)
575575
{
576576
(void)waitidle;
577577
if (glfwWindowShouldClose(winApp))
578-
return 0;
578+
return false;
579579
glfwPollEvents();
580580
nk_glfw3_new_frame();
581-
return 1;
581+
return true;
582582
}
583583

584584
static int hotplug_callback(libusb_context *ctx, libusb_device *device,

0 commit comments

Comments
 (0)