mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 17:46:18 +00:00
Fixed: #948 Ryzom Client: Mac OS X X11 unsupported color depth
This commit is contained in:
parent
d17b9de3b0
commit
1b1714a760
1 changed files with 13 additions and 1 deletions
|
@ -1691,7 +1691,19 @@ bool CDriverGL::getCurrentScreenMode(GfxMode &mode)
|
|||
mode.Frequency= devmode.dmDisplayFrequency,
|
||||
mode.Width= (uint16)devmode.dmPelsWidth;
|
||||
mode.Height= (uint16)devmode.dmPelsHeight;
|
||||
#else
|
||||
#elif defined(NL_OS_MAC)
|
||||
|
||||
/*
|
||||
TODO this is just a hack to get the ryzom client running on mac os x x11.
|
||||
the implementation below relies on the vidmode extension which is not
|
||||
availeble on mac os x's x11. for that reason the color depth value is
|
||||
hard coded here.
|
||||
FIXME replace this hack by native cocoa color depth retrieval
|
||||
*/
|
||||
nlwarning("FIXME: returning hardcoded color depth of 24bit");
|
||||
mode.Depth= 24;
|
||||
|
||||
#elif defined(NL_OS_UNIX)
|
||||
|
||||
# ifdef XF86VIDMODE
|
||||
sint pixelClock;
|
||||
|
|
Loading…
Reference in a new issue