Commit 9bc9f5e6 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

If we are looking for an existing pixmap format, we do not need the

same bitsperpixel (fixes depth 15/bitspixel 16 mode).
parent 098b1a74
......@@ -55,7 +55,7 @@ int _common_depth_to_pixelformat(DWORD depth,LPDIRECTDRAW ddraw)
pf = TSXListPixmapFormats(display, &npixmap);
for (i = 0; i < npixmap; i++) {
if ((pf[i].depth == depth) && (pf[i].bits_per_pixel == depth)) {
if (pf[i].depth == depth) {
int j;
for (j = 0; j < nvisuals; j++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment