summaryrefslogtreecommitdiff
path: root/src/nv_video.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-06-16 09:23:29 +0000
committerEric Anholt <anholt@freebsd.org>2004-06-16 09:23:29 +0000
commitb9a6776bc04eb19343882bddb371b705677cfc14 (patch)
tree1a208639fce2ff133b157bf41ad8217f1d1035f2 /src/nv_video.c
parentcbf040deb0ab24425468ed60b3f3edd322ec210f (diff)
Diffstat (limited to 'src/nv_video.c')
-rw-r--r--src/nv_video.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nv_video.c b/src/nv_video.c
index 66f49c0..f985461 100644
--- a/src/nv_video.c
+++ b/src/nv_video.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_video.c,v 1.20tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_video.c,v 1.19 2003/09/01 20:54:26 mvojkovi Exp $ */
#include "xf86.h"
#include "xf86_OSproc.h"
@@ -432,7 +432,7 @@ NVSetupOverlayVideo (ScreenPtr pScreen)
NVSetPortDefaults (pScrnInfo, pPriv);
/* gotta uninit this someplace */
- REGION_NULL(pScreen, &pPriv->clip);
+ REGION_INIT(pScreen, &pPriv->clip, NullBox, 0);
pNv->overlayAdaptor = adapt;
@@ -958,7 +958,7 @@ static int NVPutImage
NVPtr pNv = NVPTR(pScrnInfo);
INT32 xa, xb, ya, yb;
unsigned char *dst_start;
- int newSize, offset, s2offset, s3offset;
+ int pitch, newSize, offset, s2offset, s3offset;
int srcPitch, srcPitch2, dstPitch;
int top, left, right, bottom, npixels, nlines, bpp;
Bool skip = FALSE;
@@ -1011,6 +1011,7 @@ static int NVPutImage
}
bpp = pScrnInfo->bitsPerPixel >> 3;
+ pitch = bpp * pScrnInfo->displayWidth;
switch(id) {
case FOURCC_YV12: