perltidy
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-04-28 15:08:00 +09:00
commit 6341b76a86
6 changed files with 18 additions and 17 deletions

View file

@ -876,9 +876,9 @@ static int MwLLGDICallInitImpl(void) {
if(wsymtbl.lib_dwmapi != NULL) DwmSetWindowAttribute = MwDynamicSymbol(wsymtbl.lib_dwmapi, "DwmSetWindowAttribute");
if((ntdll = GetModuleHandle("ntdll.dll")) != NULL && GetProcAddress(ntdll, "wine_get_version") != NULL){
if((ntdll = GetModuleHandle("ntdll.dll")) != NULL && GetProcAddress(ntdll, "wine_get_version") != NULL) {
is_plgblt_reliable = 0;
}else{
} else {
is_plgblt_reliable = 1;
}

View file

@ -129,16 +129,17 @@ static int wcreate(MwWidget handle) {
SetPixelFormat(o->dc, pf, &pfd);
o->lib = MwDynamicOpen("opengl32.dll");
if(!o->lib){
printf("Could not load OpenGL widget under WGL!\n"); \
if(!o->lib) {
printf("Could not load OpenGL widget under WGL!\n");
return 1;
}
#define WGL_FUNC(x) o->x = MwDynamicSymbol(o->lib, #x); \
if(o->x == NULL){ \
printf("Could not load OpenGL widget under WGL! " #x " missing.\n"); \
return 1; \
}
#define WGL_FUNC(x) \
o->x = MwDynamicSymbol(o->lib, #x); \
if(o->x == NULL) { \
printf("Could not load OpenGL widget under WGL! " #x " missing.\n"); \
return 1; \
}
WGL_FUNC(wglCreateContext);
WGL_FUNC(wglMakeCurrent);