summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dos/video.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-04-01 17:01:33 +0000
committerBrian Paul <[email protected]>2002-04-01 17:01:33 +0000
commit6c921af034525fc28f006e447f62a31e00649f2c (patch)
treee6287c87d5aacd4980c1b1301aa548f67dfd5738 /src/mesa/drivers/dos/video.c
parenta97d216adb6cd97926d760a4b5eadfaf1fda29f7 (diff)
DOS driver update
Diffstat (limited to 'src/mesa/drivers/dos/video.c')
-rw-r--r--src/mesa/drivers/dos/video.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/drivers/dos/video.c b/src/mesa/drivers/dos/video.c
index 9d50952c527..d31037de616 100644
--- a/src/mesa/drivers/dos/video.c
+++ b/src/mesa/drivers/dos/video.c
@@ -23,7 +23,7 @@
*/
/*
- * DOS/DJGPP device driver v0.4 for Mesa 4.0
+ * DOS/DJGPP device driver v1.0 for Mesa 4.0
*
* Copyright (C) 2002 - Borca Daniel
* Email : [email protected]
@@ -416,14 +416,12 @@ void *vl_sync_buffer (void *buffer, int x, int y, int width, int height)
if (width&3) {
return NULL;
} else {
- current_offset = video_scanlen * y + video_bypp * x;
if ((newbuf=realloc(buffer, width*height*video_bypp))!=NULL) {
+ current_offset = video_scanlen * y + video_bypp * x;
current_width = width;
current_delta = video_scanlen - video_bypp * width;
- return newbuf;
- } else {
- return NULL;
}
+ return newbuf;
}
}