From: Brian J. <bjj...@us...> - 2004-06-29 20:40:00
|
Gwenole, I gave the new SDL support a spin on IRIX. I found I needed the following patches for building: Index: video_blit.h =================================================================== RCS file: /cvs/BasiliskII/src/Unix/video_blit.h,v retrieving revision 1.10 diff -u -r1.10 video_blit.h --- video_blit.h 26 Jun 2004 17:20:35 -0000 1.10 +++ video_blit.h 29 Jun 2004 20:01:25 -0000 @@ -69,7 +69,7 @@ #define VIDEO_MODE_X mode.x #define VIDEO_MODE_Y mode.y #define VIDEO_MODE_RESOLUTION mode.resolution_id -#define VIDEO_MODE_DEPTH (int)mode.depth +#define VIDEO_MODE_DEPTH mode.depth #endif #endif /* VIDEO_BLIT_H */ Index: ../SDL/video_sdl.cpp =================================================================== RCS file: /cvs/BasiliskII/src/SDL/video_sdl.cpp,v retrieving revision 1.9 diff -u -r1.9 video_sdl.cpp --- ../SDL/video_sdl.cpp 27 Jun 2004 17:31:21 -0000 1.9 +++ ../SDL/video_sdl.cpp 29 Jun 2004 20:01:25 -0000 @@ -413,7 +413,7 @@ VIDEO_MODE_Y = height; VIDEO_MODE_RESOLUTION = resolution_id; VIDEO_MODE_ROW_BYTES = bytes_per_row; - VIDEO_MODE_DEPTH = depth; + VIDEO_MODE_DEPTH = (enum video_depth)depth; VideoModes.push_back(mode); } I believe casts in lvalues are a GCC extension -- MIPSPro CC doesn't like them. The app configured and built OK. "Millions" of colors mode seems to work fine (although it's a bit slower than X11/XShm, it's still very usable.) The gamma seems to be a bit different than with the X driver, but that's OK. "Thousands" of colors mode squashes the entire display into the left half of the window, with an odd green cast. Looks like something's not quite right in the 16bpp blitter... Other video modes produce an error like this, just after remapping the window: Gdk-ERROR **: BadMatch (invalid parameter attributes) serial 41 error_code 8 request_code 129 minor_code 3 Those used to occur quite a bit when we were debugging BasiliskII's runtime depth switching. I believe they stemmed from trying to use the wrong X11 visual... Unlike XFree86, Xsgi supports a full range of visuals at different bit depths, all at once. Some code had been assuming a single visual, if I recall.... Anyway, keep up the good work. Thanks, Brian Johnson -------------------------------------------------------------------- On learning: "The brighter grows the candle flame, the larger the diameter of the surrounding darkness" -- Robyn McNamara |