diff options
author | Eugene Sandulenko | 2003-12-16 06:20:16 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2003-12-16 06:20:16 +0000 |
commit | a8eae425101e71c18e3ed6d2d3d00870552ee970 (patch) | |
tree | 3fcc7f7202bffa7245c3b0b4237a3b31ddefeffe /sword1 | |
parent | 28331ab2ac2050ab69691193b41e63dd495f8c87 (diff) | |
download | scummvm-rg350-a8eae425101e71c18e3ed6d2d3d00870552ee970.tar.gz scummvm-rg350-a8eae425101e71c18e3ed6d2d3d00870552ee970.tar.bz2 scummvm-rg350-a8eae425101e71c18e3ed6d2d3d00870552ee970.zip |
o FreeBSD specifix fix. I am not sure it is applicable to every Unix
svn-id: r11675
Diffstat (limited to 'sword1')
-rw-r--r-- | sword1/screen.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sword1/screen.cpp b/sword1/screen.cpp index 17ad57ce30..ed0503ade4 100644 --- a/sword1/screen.cpp +++ b/sword1/screen.cpp @@ -837,6 +837,11 @@ void SwordScreen::bsubline_4(uint16 x1, uint16 y1, uint16 x2, uint16 y2) { } } +#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; |