MEGA65 / mega65-tools

Tools and Utilities for the MEGA65 Retro Computers
GNU General Public License v3.0
28 stars 31 forks source link

m65 tool does not use the correct palette to take screen shots #109

Closed M3wP closed 2 years ago

M3wP commented 2 years ago

When taking the screen shot, m65 tool needs to save the currently mapped palette and then map in the correct palette before doing the screen shot. When complete, the original mapping should be restored.

lydon42 commented 2 years ago

In the example program the MAPEDPAL is 01, but BTPALSEL is 11. So screenshot gets palette 01 from mapped memory, but VIC is actually drawing from palette 11.

lydon42 commented 2 years ago

Switching MAPEDPAL to BTPALSEL before fetching palette does fix the problem.