summaryrefslogtreecommitdiff
path: root/hw/kdrive/src/koffscreen.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2003-10-14 05:07:39 +0000
committerKeith Packard <keithp@keithp.com>2003-10-14 05:07:39 +0000
commit4b844cafb2516139c8407822b61939cd6c743742 (patch)
tree0e1232bbf30f353aeec8567288f89b02f2aee582 /hw/kdrive/src/koffscreen.c
parentcdf3377f6d3789628495ac64df80ac7dc235e46d (diff)
Check for off-screen pixmap support in KaaDrawableIsOffscreenPixmap. -Wall
fixes. Allocate pixmap private space only for screens with off-screen pixmap support
Diffstat (limited to 'hw/kdrive/src/koffscreen.c')
-rw-r--r--hw/kdrive/src/koffscreen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/kdrive/src/koffscreen.c b/hw/kdrive/src/koffscreen.c
index a407fc4ee..62df0fcd6 100644
--- a/hw/kdrive/src/koffscreen.c
+++ b/hw/kdrive/src/koffscreen.c
@@ -52,6 +52,9 @@ KdOffscreenAlloc (ScreenPtr pScreen, int size, int align,
int tmp, real_size;
+ if (!align)
+ align = 1;
+
/* Go through the areas */
area = pScreenPriv->screen->off_screen_areas;
while (area != NULL)