Previous 15994 Revisions Next

r3186 Saturday 6th September, 2008 at 09:17:22 UTC by Roberto Zandonà
[C65] fixed border for c64dx clone
[src/mess/drivers]c65.c
[src/mess/video]vic4567.c

src/mess/video/vic4567.c
r3185r3186
211211   if (!SCREENON)
212212   {
213213      for (line = first; (line < last) && (line < vic2.bitmap->height); line++)
214         memset16 (BITMAP_ADDR16(vic2.bitmap, line, 0), 0, vic2.bitmap->width);
214         memset16 (BITMAP_ADDR16(vic2.bitmap, line + FIRSTLINE, 0), 0, vic2.bitmap->width);
215215      return;
216216   }
217217   if (COLUMNS40)
r3185r3186
226226
227227   for (line = first; line < end; line++)
228228   {
229      memset16 (BITMAP_ADDR16(vic2.bitmap, line, 0), FRAMECOLOR,
230         vic2.bitmap->width);
229      memset16 (BITMAP_ADDR16(vic2.bitmap, line + FIRSTLINE, 0), FRAMECOLOR, vic2.bitmap->width);
231230   }
232231
233232   if (LINES25)
r3185r3186
388387
389388      for (i = ybegin; i <= yend; i++)
390389      {
391         plot_box(vic2.bitmap, 0, yoff+ybegin, xbegin, yend-ybegin+1, FRAMECOLOR);
392         plot_box(vic2.bitmap, xend, yoff+ybegin, vic2.bitmap->width - xend, yend-ybegin+1, FRAMECOLOR);
393
394         /*
395         memset16 (BITMAP_ADDR16(vic2.bitmap, yoff + 1, 0),
396                  FRAMECOLOR, xbegin);
397         memset16 (BITMAP_ADDR16(vic2.bitmap, yoff + 1, xend),
398                  FRAMECOLOR, vic2.bitmap->width - xend);
399         */
390         plot_box(vic2.bitmap, 0, yoff + ybegin + FIRSTLINE, xbegin, yend-ybegin+1, FRAMECOLOR);
391         plot_box(vic2.bitmap, xend, yoff + ybegin + FIRSTLINE, vic2.bitmap->width - xend, yend-ybegin+1, FRAMECOLOR);
400392      }
401393   }
402394   if (last < vic2.bitmap->height)
r3185r3186
406398
407399   for (; line < end; line++)
408400   {
409      memset16 (BITMAP_ADDR16(vic2.bitmap, line, 0), FRAMECOLOR,
410         vic2.bitmap->width);
401      memset16 (BITMAP_ADDR16(vic2.bitmap, line + FIRSTLINE, 0), FRAMECOLOR, vic2.bitmap->width);
411402   }
412403}
413404
r3185r3186
828819      if ((new_columns!=columns)||(new_raws!=raws)) {
829820         raws=new_raws;
830821         columns=new_columns;
831         video_screen_set_visarea(machine->primary_screen, 0,columns+16-1,0, raws+16-1);
822         if (c64_pal)
823            video_screen_set_visarea(   machine->primary_screen,
824                           VIC2_STARTVISIBLECOLUMNS + 32,
825                           VIC2_STARTVISIBLECOLUMNS + 32 + columns + 16 - 1,
826                           VIC2_STARTVISIBLELINES + 34,
827                           VIC2_STARTVISIBLELINES + 34 + raws + 16 - 1);
828         else
829            video_screen_set_visarea(   machine->primary_screen,
830                           VIC2_STARTVISIBLECOLUMNS + 32,
831                           VIC2_STARTVISIBLECOLUMNS + 32 + columns + 16 - 1,
832                           VIC2_STARTVISIBLELINES + 34,
833                           VIC2_STARTVISIBLELINES + 34 + raws + 16 - 1);
832834      }
833835      if (VIC3_BITPLANES) {
834836         if (!video_skip_this_frame ()) vic3_draw_bitplanes(machine);
src/mess/drivers/c65.c
r3185r3186
189189   MDRV_SCREEN_MODIFY("main")
190190   MDRV_SCREEN_REFRESH_RATE(VIC6567_VRETRACERATE)
191191   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
192   MDRV_SCREEN_SIZE(656, 416)
193   MDRV_SCREEN_VISIBLE_AREA(0, 656 - 1, 0, 416 - 1)
192   MDRV_SCREEN_SIZE(VIC6567_COLUMNS * 3, VIC6567_LINES * 3)
193//   MDRV_SCREEN_VISIBLE_AREA(VIC6567_STARTVISIBLECOLUMNS ,(VIC6567_STARTVISIBLECOLUMNS + VIC6567_VISIBLECOLUMNS - 1) * 2, VIC6567_STARTVISIBLELINES, VIC6567_STARTVISIBLELINES + VIC6567_VISIBLELINES - 1)
194   MDRV_SCREEN_VISIBLE_AREA(0, VIC6567_COLUMNS * 3 - 1, 0, VIC6567_LINES * 3 - 1)
194195   MDRV_PALETTE_LENGTH(sizeof(vic3_palette) / sizeof(vic3_palette[0]) / 3)
195196   MDRV_PALETTE_INIT( c65 )
196197
r3185r3186
210211   MDRV_IMPORT_FROM( c65 )
211212   MDRV_SCREEN_MODIFY("main")
212213   MDRV_SCREEN_REFRESH_RATE(VIC6569_VRETRACERATE)
214   MDRV_SCREEN_SIZE(VIC6569_COLUMNS * 3, VIC6569_LINES * 3)
215//   MDRV_SCREEN_VISIBLE_AREA(VIC6569_STARTVISIBLECOLUMNS, (VIC6569_STARTVISIBLECOLUMNS + VIC6569_VISIBLECOLUMNS - 1) * 2, VIC6569_STARTVISIBLELINES, VIC6569_STARTVISIBLELINES + VIC6569_VISIBLELINES - 1)
216   MDRV_SCREEN_VISIBLE_AREA(0, VIC6569_COLUMNS * 3 - 1, 0, VIC6569_LINES * 3 - 1)
213217
214218   MDRV_SOUND_REPLACE("sid_r", SID8580, 1022727)
215219   MDRV_SOUND_CONFIG(c65_sound_interface)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team