From bfdb585dcfd8934b10540e55e1500d3dfad1f2c9 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Fri, 7 Nov 2025 04:56:47 +0000 Subject: [PATCH] format git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@614 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 7434d33..35581ba 100644 --- a/src/widget/opengl.c +++ b/src/widget/opengl.c @@ -87,7 +87,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;