Closed xlar54 closed 6 years ago
thanks for pointing this out Scott!, I just applied your patch and tested and it does indeed seem to work fine :D
No problem. Im running a bunch of test programs through the operating system and as I run into more patches, Ill send them your way.
Sent from Mail for Windows 10
From: Mario Ballano Sent: Monday, November 20, 2017 6:17 PM To: marioballano/emudore Cc: Scott Hutter; Author Subject: Re: [marioballano/emudore] 38/40 col mode fix (#6)
thanks for pointing this out Scott!, I just applied your patch and tested and it does indeed seem to work fine :D — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Control register 53270, bit 3 handles 38 or 40 column mode. POKE53270,0 should make it go 38 column and POKE53270,8 should return to normal.
Here's a patch you can apply to provide this function:
`void Vic::draw_raster_char_mode() { int rstr = raster_counter(); int y = rstr - kFirstVisibleLine; if((rstr >= kGFirstLine) && (rstr < kGLastLine) && !is_screen_off()) { / draw background / if(!ISSETBIT(cr2,3)) // 38 columns io_->screen_drawrect(kGFirstCol+8,y,kGResX-16,bgcolor[0]); else io_->screen_drawrect(kGFirstCol,y,kGResX,bgcolor[0]);
} } `