Previous 15994 Revisions Next

r3181 Friday 5th September, 2008 at 22:23:23 UTC by Roberto Zandonà
[C64] use a parameter for first visible raster line
[src/mess/video]vic6567.c vic6567.h

src/mess/video/vic6567.c
r3180r3181
11301130   /* top part of display not rastered */
11311131   first -= VIC2_YPOS - YPOS;
11321132   last -= VIC2_YPOS - YPOS;
1133/*
11331134   if ((first >= last) || (last <= 0))
11341135   {
11351136      for (i = 0; i < 8; i++)
r3180r3181
11381139   }
11391140   if (first < 0)
11401141      first = 0;
1141
1142*/
11421143   if (!SCREENON)
11431144   {
11441145      for (line = first; (line < last) && (line < vic2.bitmap->height); line++)
r3180r3181
13631364   }
13641365// printf("%08x  ",(int)activecpu_gettotalcycles());
13651366   if (vic2.on)
1366      if ((vic2.rasterline > 0x25) && (vic2.rasterline < 0x120))vic2_drawlines (vic2.rasterline-1, vic2.rasterline);
1367      if ((vic2.rasterline >= VIC2_FIRSTRASTERLINE) && (vic2.rasterline < (VIC2_FIRSTRASTERLINE + VIC2_VISIBLELINES))) vic2_drawlines (vic2.rasterline-1, vic2.rasterline);
13671368}
13681369
13691370VIDEO_UPDATE( vic2 )
src/mess/video/vic6567.h
r3180r3181
5050#define VIC6567_STARTVISIBLELINES ((VIC6567_LINES - VIC6567_VISIBLELINES)/2)
5151#define VIC6569_STARTVISIBLELINES ((VIC6569_LINES - VIC6569_VISIBLELINES)/2)
5252#define VIC2_STARTVISIBLELINES ((VIC2_LINES - VIC2_VISIBLELINES)/2)
53#define VIC6567_FIRSTRASTERLINE 34
54#define VIC6569_FIRSTRASTERLINE 9
55#define VIC2_FIRSTRASTERLINE (vic2.pal?VIC6569_FIRSTRASTERLINE:VIC6567_FIRSTRASTERLINE)
5356
5457#define VIC6567_COLUMNS 512
5558#define VIC6569_COLUMNS 504

Previous 15994 Revisions Next


© 1998-2018 The MESS Team