Lift restrictions on tilesets

Support full color tilesets with tiles of arbitrary size.
This commit is contained in:
Ray Chason
2020-01-27 09:54:58 +02:00
committed by Pasi Kallinen
parent 34da5ea372
commit 82a219c227
4 changed files with 779 additions and 360 deletions
+6 -4
View File
@@ -502,18 +502,20 @@ boolean clearfirst;
#endif /* USE_TILES && CLIPPING */
void
vga_userpan(left)
boolean left;
vga_userpan(pan)
enum vga_pan_direction pan;
{
int x;
/* pline("Into userpan"); */
if (iflags.over_view || iflags.traditional_view)
return;
if (left)
if (pan == pan_left)
x = min(COLNO - 1, clipxmax + 10);
else
else if (pan == pan_right)
x = max(0, clipx - 10);
else
return;
vga_cliparound(x, 10); /* y value is irrelevant on VGA clipping */
positionbar();
vga_DrawCursor();