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

same bitsperpixel (fixes depth 15/bitspixel 16 mode).
This commit is contained in:
Marcus Meissner 2000-08-07 17:09:37 +00:00 committed by Alexandre Julliard
parent 098b1a7443
commit 9bc9f5e6df
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {