a2stuff / a2d

Disassembly of the Apple II Desktop - ProDOS GUI
https://a2desktop.com
270 stars 20 forks source link

Display corrupted when returning from //GS Apps #764

Closed banksr1979 closed 1 year ago

banksr1979 commented 1 year ago

When Returning to Desktop after quitting various //GS Applications, the display is corrupted. Desktop seem to otherwise be running normally, but the display is 'fragmented', rendering it unusable

To Reproduce Steps to reproduce the behavior: On Apple //GS Rom 03:

  1. Boot to DeskTop
  2. Launch GS Application, for example NoiseTracker https://archive.org/details/a2gs_NoiseTracker_1992_FTW_FW
  3. Quit GS Application, returning to Desktop
  4. Desktop display is corrupt - clicking around, moving mouse, using keyboard shortcuts all seem to work, but you're working blind

Expected behavior Desktop starts normally

Screenshots fail

Additional context

Happens with a few GS Apps I've tried so far, SHR viewer and NoiseTracker. Resetting to bitsy-bye and then launching Desktop again fixes it. It looks like perhaps the apps mess with some video mode registers, and don't put them back where the found them, and Desktop assumes they're set to default when booting. maybe. idk, i'm no expert.

Will try on an emulator as soon as I get one set up, there's a small but non-zero chance its a fault in my hardware, although it seems to be ok - will find some diagnostic tools!

banksr1979 commented 1 year ago

Behaviour not seen in KEGS emulator on Windows or android (although going to 'about this Apple II' locks the emulator up, but that's a different issue!)

inexorabletash commented 1 year ago

Repros for me in MAME via Ample, ROM 01 IIgs.

inexorabletash commented 1 year ago

Thanks for the report! This was fun. The issue was caused by not resetting a bit in NEWVIDEO. Apparently all three of SHADOW, SPEED and NEWVIDEO can affect shadowing on the IIgs.