diff options
author | Earle F. Philhower III <earle@ziplabel.com> | 2004-03-26 16:05:51 +0000 |
---|---|---|
committer | Earle F. Philhower III <earle@ziplabel.com> | 2004-03-26 16:05:51 +0000 |
commit | eac64dc50d24ec259dd21339d422d7d0a5546db9 (patch) | |
tree | 54a8474bb12730a4e23969ee910c8bfd8d87927d /hw | |
parent | 9cf9f37f496979b99ebaf73d725b38e6405d5ec9 (diff) |
Use BitsPerPixel() to calculate pixel stride, handle non-packed modes
Diffstat (limited to 'hw')
-rwxr-xr-x | hw/xwin/winmultiwindowicons.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xwin/winmultiwindowicons.c b/hw/xwin/winmultiwindowicons.c index b9c0a2dfb..8d20ea6f2 100755 --- a/hw/xwin/winmultiwindowicons.c +++ b/hw/xwin/winmultiwindowicons.c @@ -71,7 +71,7 @@ winScaleXBitmapToWindows (int iconSize, unsigned int zero; unsigned int color; - effXBPP = pixmap->drawable.bitsPerPixel; + effXBPP = BitsPerPixel(pixmap->drawable.depth); effXDepth = pixmap->drawable.depth; if (pixmap->drawable.bitsPerPixel == 15) |