summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorEarle F. Philhower III <earle@ziplabel.com>2004-03-26 16:05:51 +0000
committerEarle F. Philhower III <earle@ziplabel.com>2004-03-26 16:05:51 +0000
commiteac64dc50d24ec259dd21339d422d7d0a5546db9 (patch)
tree54a8474bb12730a4e23969ee910c8bfd8d87927d /hw
parent9cf9f37f496979b99ebaf73d725b38e6405d5ec9 (diff)
Use BitsPerPixel() to calculate pixel stride, handle non-packed modes
Diffstat (limited to 'hw')
-rwxr-xr-xhw/xwin/winmultiwindowicons.c2
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)