[Scummvm-cvs-logs] CVS: scummvm/sword1 screen.cpp,1.1,1.2

Eugene Sandulenko sev at users.sourceforge.net
Mon Dec 15 22:21:01 CET 2003


Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1:/tmp/cvs-serv23902

Modified Files:
	screen.cpp 
Log Message:
 o FreeBSD specifix fix. I am not sure it is applicable to every Unix


Index: screen.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/screen.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- screen.cpp	16 Dec 2003 02:09:25 -0000	1.1
+++ screen.cpp	16 Dec 2003 06:20:16 -0000	1.2
@@ -837,6 +837,11 @@
     }
 }
 
+#ifdef __FreeBSD__
+#define min(a,b) ((a) < (b) ? (a) : (b))
+#define max(a,b) ((a) > (b) ? (a) : (b))
+#endif
+
 void SwordScreen::drawLine(uint16 x1, uint16 y1, uint16 x2, uint16 y2) {
 	if ((x1 == x2) && (y1 == y2)) {
 		_screenBuf[x1 + y1 * _scrnSizeX] = 0;





More information about the Scummvm-git-logs mailing list