mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 23:56:15 +00:00
Fixed: #993 Floating Point Exception in NL3D::CDriverGL::getModes on Linux
This commit is contained in:
parent
5696f9a2e4
commit
9e67bcf9a2
1 changed files with 2 additions and 2 deletions
|
@ -1201,7 +1201,7 @@ bool CDriverGL::getModes(std::vector<GfxMode> &modes)
|
||||||
mode.Width = (uint16)ms[j]->hdisplay;
|
mode.Width = (uint16)ms[j]->hdisplay;
|
||||||
mode.Height = (uint16)ms[j]->vdisplay;
|
mode.Height = (uint16)ms[j]->vdisplay;
|
||||||
const uint16 pixelsCount = ms[j]->htotal * ms[j]->vtotal;
|
const uint16 pixelsCount = ms[j]->htotal * ms[j]->vtotal;
|
||||||
mode.Frequency = pixelCount ? 1000 * ms[j]->dotclock / pixelCount:0;
|
mode.Frequency = pixelsCount ? 1000 * ms[j]->dotclock / pixelsCount:0;
|
||||||
nldebug("3D: Mode %d: %dx%d, %d Hz", j, mode.Width, mode.Height, mode.Frequency);
|
nldebug("3D: Mode %d: %dx%d, %d Hz", j, mode.Width, mode.Height, mode.Frequency);
|
||||||
modes.push_back (mode);
|
modes.push_back (mode);
|
||||||
}
|
}
|
||||||
|
@ -1246,7 +1246,7 @@ bool CDriverGL::getCurrentScreenMode(GfxMode &mode)
|
||||||
/*
|
/*
|
||||||
TODO this is just a hack to get the ryzom client running on mac os x x11.
|
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
|
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
|
available on mac os x's x11. for that reason the color depth value is
|
||||||
hard coded here.
|
hard coded here.
|
||||||
FIXME replace this hack by native cocoa color depth retrieval
|
FIXME replace this hack by native cocoa color depth retrieval
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue