diff options
author | Keith Packard <keithp@keithp.com> | 2003-10-14 05:07:39 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2003-10-14 05:07:39 +0000 |
commit | 4b844cafb2516139c8407822b61939cd6c743742 (patch) | |
tree | 0e1232bbf30f353aeec8567288f89b02f2aee582 /hw/kdrive/src/kmap.c | |
parent | cdf3377f6d3789628495ac64df80ac7dc235e46d (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/kmap.c')
-rw-r--r-- | hw/kdrive/src/kmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/kdrive/src/kmap.c b/hw/kdrive/src/kmap.c index 676282393..bd506996b 100644 --- a/hw/kdrive/src/kmap.c +++ b/hw/kdrive/src/kmap.c @@ -108,7 +108,7 @@ KdSetMappedMode (CARD32 addr, CARD32 size, int mode) #ifdef HAVE_ASM_MTRR_H struct mtrr_sentry sentry; unsigned long base, bound; - unsigned int type; + unsigned int type = MTRR_TYPE_WRBACK; if (addr < 0x100000) return; @@ -147,7 +147,7 @@ KdResetMappedMode (CARD32 addr, CARD32 size, int mode) #ifdef HAVE_ASM_MTRR_H struct mtrr_sentry sentry; unsigned long base, bound; - unsigned int type; + unsigned int type = MTRR_TYPE_WRBACK; if (addr < 0x100000) return; |