From 744ea58b9dbfc888f0850fcc01052ee4275859fb Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 2 Dec 2024 18:15:23 +1100 Subject: [PATCH] IRIX build fixes --- src/Graphics_GL1.c | 3 ++- src/Window_X11.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Graphics_GL1.c b/src/Graphics_GL1.c index 7952ef97b..6d2433798 100644 --- a/src/Graphics_GL1.c +++ b/src/Graphics_GL1.c @@ -7,7 +7,8 @@ #include "_GraphicsBase.h" #include "Errors.h" #include "Window.h" -#ifdef CC_BUILD_WIN + +#if defined CC_BUILD_WIN #define CC_BUILD_GL11_FALLBACK #endif diff --git a/src/Window_X11.c b/src/Window_X11.c index 489973533..75901e0a2 100644 --- a/src/Window_X11.c +++ b/src/Window_X11.c @@ -54,7 +54,8 @@ /* XIM support based off details described in */ /* https://tedyin.com/posts/a-brief-intro-to-linux-input-method-framework/ */ #endif -#ifdef CC_BUILD_HPUX + +#if defined CC_BUILD_HPUX || defined CC_BUILD_IRIX #undef CC_BUILD_XIM #endif @@ -383,7 +384,7 @@ static void DoCreateWindow(int width, int height) { Window win = XCreateWindow(win_display, win_rootWin, x, y, width, height, 0, win_visual.depth /* CopyFromParent*/, InputOutput, win_visual.visual, #ifdef CC_BUILD_IRIX - CWColormap | CWEventMask | CWBlackPixel | CWBorderPixel, &attributes); + CWColormap | CWEventMask | CWBackPixel | CWBorderPixel, &attributes); #else /* Omitting black/border pixels produces nicer looking resizing on some WMs */ CWColormap | CWEventMask, &attributes);