182 |
|
update_cdmode(); |
183 |
|
gl_eng->DisplayMode.Width = cur_devmode.dmPelsWidth; |
184 |
|
gl_eng->DisplayMode.Height = cur_devmode.dmPelsHeight; |
185 |
< |
if (cur_devmode.dmBitsPerPel > depth) |
185 |
> |
if (cur_devmode.dmBitsPerPel > (unsigned short)depth) |
186 |
|
gl_eng->DisplayMode.Depth = cur_devmode.dmBitsPerPel; |
187 |
|
} |
188 |
|
else |
189 |
|
{ |
190 |
|
update_cdmode(); |
191 |
< |
if (cur_devmode.dmBitsPerPel > depth) |
191 |
> |
if (cur_devmode.dmBitsPerPel > (unsigned short)depth) |
192 |
|
gl_eng->DisplayMode.Depth = cur_devmode.dmBitsPerPel; |
193 |
|
} |
194 |
|
return 1; |