IRIX build fixes

This commit is contained in:
UnknownShadow200 2024-12-02 18:15:23 +11:00
parent 92c35cb04c
commit 744ea58b9d
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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);