aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-09-28 16:38:00 +0000
committerTorbjörn Andersson2003-09-28 16:38:00 +0000
commit0ac7630ebbef5c0933099a30f533a366728ba706 (patch)
treeb86e68a1799f86dc433426e67324a56f993a63f0 /sword2
parentd4f6639802ff0c99ed0ecd482aa0c0ad483c7a8f (diff)
downloadscummvm-rg350-0ac7630ebbef5c0933099a30f533a366728ba706.tar.gz
scummvm-rg350-0ac7630ebbef5c0933099a30f533a366728ba706.tar.bz2
scummvm-rg350-0ac7630ebbef5c0933099a30f533a366728ba706.zip
cleanup
svn-id: r10468
Diffstat (limited to 'sword2')
-rw-r--r--sword2/driver/d_draw.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/sword2/driver/d_draw.cpp b/sword2/driver/d_draw.cpp
index a25a3dee89..18dbaccf62 100644
--- a/sword2/driver/d_draw.cpp
+++ b/sword2/driver/d_draw.cpp
@@ -21,12 +21,10 @@
#include "stdafx.h"
#include "driver96.h"
#include "bs2/header.h" // HACK: For cutscenes instruction message
-#include "bs2/memory.h" // HACK: For cutscenes instruction message
#include "bs2/maketext.h" // HACK: For cutscenes instruction message
#include "bs2/sword2.h"
#include "sound/mixer.h"
#include "rdwin.h"
-#include "_mouse.h"
#include "d_draw.h"
#include "palette.h"
#include "render.h"
@@ -44,13 +42,6 @@ int16 scrolly;
int32 renderCaps = 0;
-void FatalDirectDrawError(char *str, int32 code, char *filename, int32 line) {
- char string[256];
-
- sprintf(string, "FATAL: %s - code 0x%.8x - file %s - line %d", str, code, filename, line);
- warning("%s", string);
-}
-
int32 PlotDots(int16 x, int16 y, int16 count) {
warning("stub PlotDots( %d, %d, %d )", x, y, count);
@@ -88,8 +79,8 @@ int32 PlotDots(int16 x, int16 y, int16 count) {
IDirectDrawSurface2_Unlock(lpBackBuffer, ddDescription.lpSurface);
}
*/
- return(RD_OK);
+ return RD_OK;
}
/**
@@ -167,7 +158,8 @@ int32 GetRenderType(void) {
}
/**
- * Fill the screen buffer with palette colour zero.
+ * Fill the screen buffer with palette colour zero. Note that it does not
+ * touch the menu areas of the screen.
*/
int32 EraseBackBuffer( void ) {
@@ -182,7 +174,7 @@ int32 NextSmackerFrame(void) {
}
-uint8 *textSurface = NULL;
+static uint8 *textSurface = NULL;
void OpenTextObject(_movieTextObject *obj) {
if (obj->textSprite)