From 98f4c4b03d5ca326307889b2e4924c6fa551cf7e Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 10 Nov 2025 08:55:19 +0000 Subject: [PATCH] format git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@658 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/widget/opengl.c | 3 ++- src/widget/scrollbar.c | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/widget/opengl.c b/src/widget/opengl.c index e251302..8c40856 100644 --- a/src/widget/opengl.c +++ b/src/widget/opengl.c @@ -83,7 +83,8 @@ static int create(MwWidget handle) { attribs[3] = 24; attribs[4] = None; - while(glpath[glincr] != NULL && (o->lib = dlopen(glpath[glincr++], RTLD_LAZY)) == NULL); + while(glpath[glincr] != NULL && (o->lib = dlopen(glpath[glincr++], RTLD_LAZY)) == NULL) + ; o->glXChooseVisual = (MWglXChooseVisual)dlsym(o->lib, "glXChooseVisual"); o->glXCreateContext = (MWglXCreateContext)dlsym(o->lib, "glXCreateContext"); diff --git a/src/widget/scrollbar.c b/src/widget/scrollbar.c index 9586af0..c332453 100644 --- a/src/widget/scrollbar.c +++ b/src/widget/scrollbar.c @@ -130,7 +130,7 @@ static void draw(MwWidget handle) { } static void mouse_move(MwWidget handle) { - int or = MwGetInteger(handle, MwNorientation); + int or = MwGetInteger(handle, MwNorientation); scrollbar_t* scr = handle->internal; if(!handle->pressed) return; @@ -158,9 +158,9 @@ static void mouse_move(MwWidget handle) { } static void mouse_down(MwWidget handle, void* ptr) { - int ww = MwGetInteger(handle, MwNwidth); - int wh = MwGetInteger(handle, MwNheight); - int or = MwGetInteger(handle, MwNorientation); + int ww = MwGetInteger(handle, MwNwidth); + int wh = MwGetInteger(handle, MwNheight); + int or = MwGetInteger(handle, MwNorientation); scrollbar_t* scr = handle->internal; MwLLMouse* m = ptr;