Parent Directory | Revision Log | Patch
revision 1.123.2.10 by jasonr, Sat Feb 9 01:25:10 2002 UTC | revision 1.123.2.11 by lektu, Fri Mar 8 16:22:37 2002 UTC | |
---|---|---|
# | Line 7450 If omitted or nil, that stands for the s | Line 7450 If omitted or nil, that stands for the s |
7450 | else | else |
7451 | cap = GetDeviceCaps (hdc,NUMCOLORS); | cap = GetDeviceCaps (hdc,NUMCOLORS); |
7452 | ||
7453 | /* We force 24+ bit depths to 24-bit, both to prevent an overflow | |
7454 | and because probably is more meaningful on Windows anyway */ | |
7455 | if (cap < 0) | if (cap < 0) |
7456 | cap = 1 << (dpyinfo->n_planes * dpyinfo->n_cbits); | cap = 1 << min(dpyinfo->n_planes * dpyinfo->n_cbits, 24); |
7457 | ||
7458 | ReleaseDC (dpyinfo->root_window, hdc); | ReleaseDC (dpyinfo->root_window, hdc); |
7459 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |