[Scummvm-cvs-logs] SF.net SVN: scummvm: [29934] scummvm/trunk/engines/cine/various.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Dec 21 03:43:21 CET 2007


Revision: 29934
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29934&view=rev
Author:   thebluegr
Date:     2007-12-20 18:43:21 -0800 (Thu, 20 Dec 2007)

Log Message:
-----------
Slight cleanup

Modified Paths:
--------------
    scummvm/trunk/engines/cine/various.cpp

Modified: scummvm/trunk/engines/cine/various.cpp
===================================================================
--- scummvm/trunk/engines/cine/various.cpp	2007-12-21 02:08:30 UTC (rev 29933)
+++ scummvm/trunk/engines/cine/various.cpp	2007-12-21 02:43:21 UTC (rev 29934)
@@ -1015,6 +1015,11 @@
 	gfxDrawLine(x + width - offset, y + offset, x + width - offset, currentY + 4 - offset, color, page);	// right
 }
 
+void drawDoubleMessageBox(int16 x, int16 y, int16 width, int16 currentY, int16 color, byte* page) {
+	drawMessageBox(x, y, width, currentY, 1, 0, page);
+	drawMessageBox(x, y, width, currentY, 0, color, page);
+}
+
 void makeTextEntry(const CommandeType commandList[], uint16 height, uint16 X, uint16 Y, uint16 width) {
 	byte color = 2;
 	byte color2 = defaultMenuBoxColor2;
@@ -1053,8 +1058,7 @@
 	}
 
 	gfxDrawPlainBoxRaw(X, currentY, X + width, currentY + 4, color2, page1Raw);	// bottom part
-	drawMessageBox(X, Y, width, currentY, 1, 0, page1Raw);
-	drawMessageBox(X, Y, width, currentY, 0, color, page1Raw);
+	drawDoubleMessageBox(X, Y, width, currentY, color, page1Raw);
 
 	blitRawScreen(page1Raw);
 }
@@ -1266,8 +1270,7 @@
 	}
 
 	gfxDrawPlainBoxRaw(X, currentY, X + width, currentY + 4, color2, page1Raw);	// bottom part
-	drawMessageBox(X, Y, width, currentY, 1, 0, page1Raw);
-	drawMessageBox(X, Y, width, currentY, 0, color, page1Raw);
+	drawDoubleMessageBox(X, Y, width, currentY, color, page1Raw);
 
 	blitRawScreen(page1Raw);
 
@@ -1882,8 +1885,7 @@
 
 	gfxDrawPlainBoxRaw(x, localY, x + width, localY + 4, color, page1Raw);
 
-	drawMessageBox(x, y, width, localY, 1, 0, page1Raw);
-	drawMessageBox(x, y, width, localY, 0, color2, page1Raw);
+	drawDoubleMessageBox(x, y, width, localY, color2, page1Raw);
 }
 
 void drawDialogueMessage(byte msgIdx, int16 x, int16 y, int16 width, int16 color) {
@@ -2564,8 +2566,7 @@
 
 	gfxDrawPlainBoxRaw(x, localY, x + width, localY + 4, color2, page1Raw);
 
-	drawMessageBox(x, y, width, localY, 1, 0, page1Raw);
-	drawMessageBox(x, y, width, localY, 0, color, page1Raw);
+	drawDoubleMessageBox(x, y, width, localY, color, page1Raw);
 
 	x += margins;
 	width -= margins * 2;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list