diff options
Diffstat (limited to 'src/mga_video.c')
-rw-r--r-- | src/mga_video.c | 4 |
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; |