From: Gwenole B. <gb...@di...> - 2004-07-27 21:10:33
|
Hi, > However, it was passing the requested Mac video depth as the 3rd > parameter to Screen_blitter_init(). Nice catch, thanks. What about something like: int depth =3D (VIDEO_MODE_DEPTH <=3D VIDEO_DEPTH_8BIT ? 8 :=20 sdl_depth_of_video_depth(screen_depth)); Since that code is used elsewhere, it could be factored into something=20= like mac_depth_of_video_depth() but this name doesn't make sense. > I still have problems changing depths using SGI's Xserver, which > supports multiple visuals at multiple depths at once. I get BadMatch > errors: Still using sdl output or raw X11 output? IIRC, in video_x.cpp,=20 Christian tried the best to respect visuals and to prefer the ones=20 (DirectColor) that can handle gamma first. Last I checked for SDL,=20 selection looked quite different than in B2/video_x.cpp. > Gdk-ERROR **: BadMatch (invalid parameter attributes) > serial 1015 error_code 8 request_code 129 minor_code 3 What I usually do is to disable gtk in order to determine more easily=20 which X function it is. Bye, Gwenol=E9.= |