summaryrefslogtreecommitdiff
path: root/driver/xf86-video-radeonold/src/radeon_accelfuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/xf86-video-radeonold/src/radeon_accelfuncs.c')
-rw-r--r--driver/xf86-video-radeonold/src/radeon_accelfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/xf86-video-radeonold/src/radeon_accelfuncs.c b/driver/xf86-video-radeonold/src/radeon_accelfuncs.c
index 45eb6d559..4b89bd481 100644
--- a/driver/xf86-video-radeonold/src/radeon_accelfuncs.c
+++ b/driver/xf86-video-radeonold/src/radeon_accelfuncs.c
@@ -1206,7 +1206,7 @@ FUNC_NAME(RADEONAccelInit)(ScreenPtr pScreen, XAAInfoRecPtr a)
a->ScanlineColorExpandBuffers = info->accel_state->scratch_buffer;
if (!info->accel_state->scratch_save)
info->accel_state->scratch_save
- = xalloc(((pScrn->virtualX+31)/32*4)
+ = malloc(((pScrn->virtualX+31)/32*4)
+ (pScrn->virtualX * info->CurrentLayout.pixel_bytes));
info->accel_state->scratch_buffer[0] = info->accel_state->scratch_save;
a->SetupForScanlineCPUToScreenColorExpandFill