Commit graph

78 commits

Author SHA1 Message Date
ARM9
1575fc0303 Fix cgram-viewer RGB display values
Used to display color values shifted right by 3, now displays the correct
5-bit values.
2017-01-08 19:14:35 +01:00
Marcus Rowe
9eabab41ac Add Mode0 palette offset to TilemapRenderer 2016-11-17 23:35:55 -05:00
Marcus Rowe
baa6721a70 Load data from PPU interface into TilemapRenderer 2016-11-17 23:35:55 -05:00
Marcus Rowe
f1e7f42ac3 Add Mode 7 to Tilemap Viewer 2016-11-17 23:35:55 -05:00
Marcus Rowe
d2e6efd105 Fix 16px tile bug in TilemapRenderer 2016-11-17 23:35:54 -05:00
devinacker
b63f50f3cd Revert "get tilemap viewer info from PPU interface"
This reverts commit c50526eb66.
2016-11-17 23:35:54 -05:00
devinacker
c50526eb66 get tilemap viewer info from PPU interface 2016-11-16 23:54:31 -05:00
Marcus Rowe
71976a62f7 Rewrite TilemapRenderer to draw one tile at a time 2016-11-17 04:05:06 +10:00
Marcus Rowe
2afe07b663 Add Tilemap Viewer Window 2016-11-16 17:39:11 +10:00
Marcus Rowe
0af335c739 Fix typo that prevented OamCanvas from auto-updating 2016-11-15 16:27:02 +10:00
Marcus Rowe
273600d5c3 Allow the user to sort the Sprite Viewer columns
Decided to move the OAM name table bit into the "Char" column so it will
be included in the sort.

Also decided that refresh() should not change the user selected row.
This required me remember the selected row so it could be re-selected
after QTreeWidget has sorted the model. Unfortunately this can lead to
the occasional infinite signal call loop, necessitating the
inRefreshCall test to ensure refresh() is only called once.
2016-11-15 08:49:57 +10:00
Marcus Rowe
6148b37070 Improve column spacing in Sprite Viewer 2016-11-14 22:56:13 +10:00
Marcus Rowe
d4122d2d5b Display selected object in Sprite Viewer 2016-11-14 22:37:37 +10:00
Marcus Rowe
c87a589cc8 Only scale the vram canvas once.
On my system this dramatically reduces cpu usage from 18.5% to 4.6%
when quickly scrolling the VRAM viewer scrollbar[1].

[1]: Tested on a i5-3317U 1.70GHz CPU and no ROM loaded in the emulator.
2016-11-14 21:03:07 +10:00
devinacker
7fe51690ec add some info to the PPUDebugger interface (WIP) 2016-11-13 19:02:07 -05:00
David Lindecrantz
6c027c8aa8 vram debugger: draw image/palette with nearest neighbour interpolation 2016-11-01 12:48:19 +01:00
David Lindecrantz
ccd8d1df52 vram debugger: minor logic error fix 2016-11-01 12:48:06 +01:00
Marcus Rowe
64890654be Select VramViewer palette using a cgram widget
Also updated CgramViewer so that it uses the CgramWidget.
2016-10-23 22:09:06 +10:00
Marcus Rowe
94cf77d65a Render the VramCanvas using CGRAM palette data 2016-10-22 20:42:25 +10:00
Marcus Rowe
12d2dc1ff4 Add OAM Second Name Table Address to PPUDebugger and VramViewer 2016-10-22 17:51:40 +10:00
Marcus Rowe
187f6678cd Make the width of the Vram Viewer fixed
Had to calculate the width manually, requesting the minimum width of the
layout caused glitches.
2016-10-22 02:42:28 +10:00
Marcus Rowe
32c95d370d Show BG/OAM Tile addresses in the Vram Viewer 2016-10-21 21:47:10 +10:00
Marcus Rowe
b5bc76e5d8 Add zoom setting to the Vram Viewer 2016-10-21 20:54:06 +10:00
Marcus Rowe
3d8d6c961c Change the width of the VRAM viewer to 16 tiles
This is to match the internal width of the tilemap on a real SNES
2016-10-21 18:24:38 +10:00
Michał Ziąbkowski
eda6cc780b Fixed indentation. 2015-03-18 22:17:50 +01:00
Michał Ziąbkowski
6ce06d1e95 Renamed Canvas to VramCanvas and changed it back to struct. 2015-03-18 22:17:11 +01:00
Michał Ziąbkowski
4be60c309d Show tile address on click in VRAM viewer. 2015-03-18 19:01:56 +01:00
devinacker
d88ac78d30 initial commit 2014-11-26 18:35:12 -05:00