summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2006-09-09 23:58:42 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2006-09-09 23:58:42 +0200
commit1a045b37db4c7c606ed056addf52d337dbdeb88d (patch)
tree7fbc2379070bbbdcbe2f78baf452234266c331e4
parentdfa5807c1f5694728aa92138eb0eab5bd5b8c3d7 (diff)
Dont't multiply the retval of MGAAllocateMemory() by cpp again.
-rw-r--r--src/mga_video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mga_video.c b/src/mga_video.c
index 279d5a3..1608805 100644
--- a/src/mga_video.c
+++ b/src/mga_video.c
@@ -904,7 +904,7 @@ MGAPutImage(
npixels = ((((x2 + 0xffff) >> 16) + 1) & ~1) - left;
left <<= 1;
- offset = pPriv->video_offset * bpp;
+ offset = pPriv->video_offset;
if(pPriv->doubleBuffer)
offset += pPriv->currentBuffer * new_size * bpp;
dst_start = pMga->FbStart + offset + left + (top * dstPitch);
@@ -1101,7 +1101,7 @@ MGAAllocateSurface(
surface->pScrn = pScrn;
surface->id = id;
surface->pitches[0] = pitch;
- surface->offsets[0] = offset * bpp;
+ surface->offsets[0] = offset;
surface->devPrivate.ptr = (pointer)pPriv;
return Success;