]> git.sesse.net Git - pistorm/log
pistorm
3 years agoRebuild HDF with latest RTG changes
Andrew Hutchings [Tue, 8 Jun 2021 10:41:09 +0000 (11:41 +0100)]
Rebuild HDF with latest RTG changes

3 years agoSome PiSCSI file system reloc changes
beeanyew [Fri, 11 Jun 2021 07:09:50 +0000 (09:09 +0200)]
Some PiSCSI file system reloc changes

3 years agoMagically fix PiSCSI custom file system loading from disk
beeanyew [Thu, 10 Jun 2021 18:29:10 +0000 (20:29 +0200)]
Magically fix PiSCSI custom file system loading from disk

By adding a single line of code that I forgot to type in. Hello boilerplate.

3 years agoActually add data/fs directory
beeanyew [Thu, 10 Jun 2021 18:20:30 +0000 (20:20 +0200)]
Actually add data/fs directory

3 years agoSome non-working loading of file systems from disk for PiSCSI
beeanyew [Thu, 10 Jun 2021 18:20:05 +0000 (20:20 +0200)]
Some non-working loading of file systems from disk for PiSCSI

3 years agoMerge pull request #38 from mcgurk/wip-crap
beeanyew [Wed, 9 Jun 2021 00:04:42 +0000 (02:04 +0200)]
Merge pull request #38 from mcgurk/wip-crap

AmiTCP network instructions added

3 years agoAmiTCP instructions added
Jarno Lehtinen [Tue, 8 Jun 2021 20:37:09 +0000 (23:37 +0300)]
AmiTCP instructions added

3 years agoReduce lag of repeatedly triggered interrupts a bit
beeanyew [Tue, 8 Jun 2021 20:23:26 +0000 (22:23 +0200)]
Reduce lag of repeatedly triggered interrupts a bit

Please tell me if this breaks everything.

3 years agoRework RTG WaitVerticalSync a bit
beeanyew [Tue, 8 Jun 2021 09:13:29 +0000 (11:13 +0200)]
Rework RTG WaitVerticalSync a bit

3 years agoFix P96 2.1E(?) issues
beeanyew [Tue, 8 Jun 2021 08:04:27 +0000 (10:04 +0200)]
Fix P96 2.1E(?) issues

The Picasso96 bundled with some WB installs was refusing to enumerate any modes when encountering a palette or graphics controller type higher than its old assigned maximum.
This should fix the problem with sometimes being unable to find any graphics modes through the CyberGraphX API.
NOTE: Requires reattaching the Picasso96 settings to the board, since the palette/graphics controller chip type has changed.

3 years agoSome janitorial stuff
beeanyew [Mon, 7 Jun 2021 22:19:49 +0000 (00:19 +0200)]
Some janitorial stuff

Fix a314.device build.bat to build a314.device to the correct directory
Disable MMU emulation for now, since it mostly just causes problems when enabled

3 years agoMerge pull request #36 from LinuxJedi/p96update
beeanyew [Mon, 7 Jun 2021 17:59:52 +0000 (19:59 +0200)]
Merge pull request #36 from LinuxJedi/p96update

Update pistorm.hdf for RTG changes

3 years agoUpdate pistorm.hdf for RTG changes
Andrew Hutchings [Mon, 7 Jun 2021 15:49:20 +0000 (16:49 +0100)]
Update pistorm.hdf for RTG changes

New P96 patch file from Lemaru and update the card files in the HDF.

3 years agoSupport unaligned memory writes over the 68000 bus
beeanyew [Mon, 7 Jun 2021 08:22:31 +0000 (10:22 +0200)]
Support unaligned memory writes over the 68000 bus

3 years agoSome RTG fixes
beeanyew [Mon, 7 Jun 2021 02:12:16 +0000 (04:12 +0200)]
Some RTG fixes

Fix RTG screen not being re-enabled after boot without an initial SetSwitch 0 call, should take care of issues switching resolutions and rebooting with Aminet Picasso96
Add hold left shift to not initialize RTG driver, thanks to flype

3 years agoMerge pull request #35 from LinuxJedi/canned-hdf-fixes
beeanyew [Sun, 6 Jun 2021 07:00:50 +0000 (09:00 +0200)]
Merge pull request #35 from LinuxJedi/canned-hdf-fixes

Fixes to pistorm.hdf

3 years agoFixes to pistorm.hdf
Andrew Hutchings [Sun, 6 Jun 2021 06:22:32 +0000 (07:22 +0100)]
Fixes to pistorm.hdf

Now does the following:
* Uses a DOS/1 filesystem binary
* Creates a partition 100% of the disk size
* Adds Lemaru's PiGFX_Installer
* Adds missing .info file

3 years agoPiSCSI hunk reloc change
beeanyew [Fri, 4 Jun 2021 14:34:22 +0000 (16:34 +0200)]
PiSCSI hunk reloc change

Came across a version of PFS3AIO with an excessive number of hunk relocations in the binary compared to the ones I've seen.
Fixes segmentation fault when loading said file systems, requires `make` and `make clean` to take effect.

3 years agoActually include pistorm-dev-enums.h
beeanyew [Fri, 4 Jun 2021 07:38:37 +0000 (09:38 +0200)]
Actually include pistorm-dev-enums.h

3 years agoFix PiStorm dev memcpy, correct extern gayle_emulation_enabled type
beeanyew [Fri, 4 Jun 2021 07:37:33 +0000 (09:37 +0200)]
Fix PiStorm dev memcpy, correct extern gayle_emulation_enabled type

3 years agoAdd somewhat proper RTG vsync handling
beeanyew [Thu, 3 Jun 2021 20:48:52 +0000 (22:48 +0200)]
Add somewhat proper RTG vsync handling

3 years agoSome RTG bug fixes, (inactive for now) P2C iRTG implementation
beeanyew [Thu, 3 Jun 2021 20:16:12 +0000 (22:16 +0200)]
Some RTG bug fixes, (inactive for now) P2C iRTG implementation

Fix P2C/P2D behavior when swiching between color depths.
Add P2C iRTG implementation. This is currently too slow to be used due to the massive amount of single ps_read_8s, needs something to copy all the data similar to the RTG driver code.

3 years agoOnly allow get_mapped functions to return RAM and ROM ranges
beeanyew [Thu, 3 Jun 2021 09:14:49 +0000 (11:14 +0200)]
Only allow get_mapped functions to return RAM and ROM ranges

3 years agoFix iRTG BlitTemplate add iRTG BlitPattern support
beeanyew [Thu, 3 Jun 2021 09:06:37 +0000 (11:06 +0200)]
Fix iRTG BlitTemplate add iRTG BlitPattern support

3 years agoAdd iRTG implementation for BlitTemplate, clean up BlitTemplate RTG code
beeanyew [Thu, 3 Jun 2021 06:35:38 +0000 (08:35 +0200)]
Add iRTG implementation for BlitTemplate, clean up BlitTemplate RTG code

3 years agoiRTG initial implementation
beeanyew [Wed, 2 Jun 2021 14:10:23 +0000 (16:10 +0200)]
iRTG initial implementation

Reworked PiGFX .card driver to build using m68k-amigaos-gcc instead of VBCC
Add some iRTG accelerated functionality to rtg.c
Move rtg_enums.h to match other Amiga driver build setups
pigfx020i.card must be used to enable iRTG usage

3 years agoMerge pull request #34 from paulofduarte/wip-crap
beeanyew [Mon, 31 May 2021 08:30:07 +0000 (10:30 +0200)]
Merge pull request #34 from paulofduarte/wip-crap

Added a314 documentation.

3 years agoAdded a314 documentation.
Paulo Duarte [Mon, 31 May 2021 08:27:45 +0000 (09:27 +0100)]
Added a314 documentation.

3 years agoMerge pull request #33 from paulofduarte/wip-crap
beeanyew [Mon, 31 May 2021 02:03:05 +0000 (04:03 +0200)]
Merge pull request #33 from paulofduarte/wip-crap

Fixes to allow a314 configuration on non default paths

3 years agoFixes to allow a314 configuration on non default paths
Paulo Duarte [Mon, 31 May 2021 01:09:41 +0000 (02:09 +0100)]
Fixes to allow a314 configuration on non default paths

3 years agoMerge pull request #32 from LinuxJedi/fix-fonts
beeanyew [Sun, 30 May 2021 07:35:53 +0000 (09:35 +0200)]
Merge pull request #32 from LinuxJedi/fix-fonts

Fix font rendering issue in GUI

3 years agoFix font rendering issue in GUI
Andrew Hutchings [Sun, 30 May 2021 07:31:25 +0000 (08:31 +0100)]
Fix font rendering issue in GUI

In OS3.9 and others a different font is used which screws up the layout
for the PiStorm GUI gadgets. We now fix this to Topaz 8 so that it is
the same as other Amiga OS versions.

Also fix Disk.info to show all files and rebuild the hdf.

3 years agoMap the default 128MB of Z3 Fast on Kick 1.3
beeanyew [Thu, 27 May 2021 11:39:15 +0000 (13:39 +0200)]
Map the default 128MB of Z3 Fast on Kick 1.3

This assumes that the original Z3 Fast map line in the config has not been edited.
Z3 Fast is autoconfed before this on newer Kickstarts, so they're unaffected by this as the memory range will no longer sit around at $10000000.
1.3 PiSCSI autoboot still doesn't work.

3 years agoSome more failed PiSCSI 1.3 autoboot ventures
beeanyew [Thu, 27 May 2021 04:20:29 +0000 (06:20 +0200)]
Some more failed PiSCSI 1.3 autoboot ventures

3 years agoMerge pull request #31 from paulofduarte/wip-crap
beeanyew [Sun, 23 May 2021 08:45:19 +0000 (10:45 +0200)]
Merge pull request #31 from paulofduarte/wip-crap

Fixed a314fs paths

3 years agoFixed a314fs paths
Paulo Duarte [Sun, 23 May 2021 08:24:12 +0000 (09:24 +0100)]
Fixed a314fs paths

3 years agoAbuse PiStorm Device code to load configs on startup
beeanyew [Sun, 23 May 2021 07:54:39 +0000 (09:54 +0200)]
Abuse PiStorm Device code to load configs on startup

3 years agoMerge pull request #30 from LinuxJedi/fix-disk-icon
beeanyew [Sun, 23 May 2021 07:33:51 +0000 (09:33 +0200)]
Merge pull request #30 from LinuxJedi/fix-disk-icon

Update icon used in pistorm HDF

3 years agoUpdate icon used in pistorm HDF
Andrew Hutchings [Sun, 23 May 2021 07:29:47 +0000 (08:29 +0100)]
Update icon used in pistorm HDF

Now uses the PiStorm logo

3 years agoWorking AddDosNode/Enqueue for PiSCSI
beeanyew [Sun, 23 May 2021 04:12:07 +0000 (06:12 +0200)]
Working AddDosNode/Enqueue for PiSCSI

Still doesn't work on Kickstart 1.3, needs additional handling for the FileSystem.resource stuff

3 years agoNon-working AddDosNode/Enqueue experiments for PiSCSI
beeanyew [Sat, 22 May 2021 21:44:30 +0000 (23:44 +0200)]
Non-working AddDosNode/Enqueue experiments for PiSCSI

3 years agoUpdate default.cfg
beeanyew [Sat, 22 May 2021 07:48:05 +0000 (09:48 +0200)]
Update default.cfg

3 years agoMinor cleanup
beeanyew [Sat, 22 May 2021 02:28:36 +0000 (04:28 +0200)]
Minor cleanup

Make PiSCSI always print to console if no handler is found for the file system, since this can cause a reboot loop.
Move PiStorm device SWREV out of debug output define check.
Silence loadseg debug message.

3 years agoAdd support for automatic ROM range dumping to memory/file
beeanyew [Fri, 21 May 2021 16:53:31 +0000 (18:53 +0200)]
Add support for automatic ROM range dumping to memory/file

3 years agoMerge pull request #29 from LinuxJedi/byte-swap
beeanyew [Fri, 21 May 2021 07:34:12 +0000 (09:34 +0200)]
Merge pull request #29 from LinuxJedi/byte-swap

Identify and fix byte-swapped ROMs

3 years agoIdentify and fix byte-swapped ROMs
Andrew Hutchings [Fri, 21 May 2021 07:15:02 +0000 (08:15 +0100)]
Identify and fix byte-swapped ROMs

Logs and byte swaps ROMs back if byte swapped versions are found.

3 years agoAdd a314-shared directory
beeanyew [Thu, 20 May 2021 18:36:01 +0000 (20:36 +0200)]
Add a314-shared directory

3 years agoMaybe make A314 emulation launch Python scripts automatically
beeanyew [Thu, 20 May 2021 18:34:14 +0000 (20:34 +0200)]
Maybe make A314 emulation launch Python scripts automatically

3 years agoChmod +x some Python scripts
beeanyew [Thu, 20 May 2021 17:42:30 +0000 (18:42 +0100)]
Chmod +x some Python scripts

3 years agoFix up Amiga input keymap a bit
beeanyew [Wed, 19 May 2021 21:32:52 +0000 (23:32 +0200)]
Fix up Amiga input keymap a bit

3 years agoReplace/clean up old platform read/write check macros
beeanyew [Wed, 19 May 2021 16:54:56 +0000 (18:54 +0200)]
Replace/clean up old platform read/write check macros

3 years agoMerge pull request #28 from LinuxJedi/pistorm_utils_drive
beeanyew [Wed, 19 May 2021 12:29:25 +0000 (14:29 +0200)]
Merge pull request #28 from LinuxJedi/pistorm_utils_drive

Add PiStorm utilities / drivers HDF

3 years agoAdd PiStorm utilities / drivers HDF
Andrew Hutchings [Wed, 19 May 2021 09:54:27 +0000 (10:54 +0100)]
Add PiStorm utilities / drivers HDF

A small hard drive image that includes all the utilities and drivers for
PiStorm. Along with a shell script to rebuild it.

It is mounted by default using piscsi6 when piscsi is enabled.

This branch also fixes the GUI crash that can happen when an interrupt
fires during a ROM switch.

3 years agoRemove obsolete build files
beeanyew [Wed, 19 May 2021 11:28:06 +0000 (13:28 +0200)]
Remove obsolete build files

3 years agoActually build the new eth driver to the correct directory
beeanyew [Wed, 19 May 2021 10:28:36 +0000 (12:28 +0200)]
Actually build the new eth driver to the correct directory

3 years agoAdapt A314eth.device to PiSCSI device driver framework
beeanyew [Wed, 19 May 2021 01:57:13 +0000 (03:57 +0200)]
Adapt A314eth.device to PiSCSI device driver framework

Driver seemingly works, NAT/ethernet.py doesn't?

3 years agoFix config file parsing, add support for filename with spaces using quotes
beeanyew [Tue, 18 May 2021 22:04:38 +0000 (00:04 +0200)]
Fix config file parsing, add support for filename with spaces using quotes

For instance:
`map type=rom address=0xF80000 size=0x80000 file="../kick31 1200.rom" ovl=0`

3 years agoGet rid of some address translation
beeanyew [Tue, 18 May 2021 17:13:26 +0000 (19:13 +0200)]
Get rid of some address translation

3 years agoMaybe make A314 emulation able to access the bus
beeanyew [Tue, 18 May 2021 12:45:21 +0000 (14:45 +0200)]
Maybe make A314 emulation able to access the bus

Yes, it is untested.

3 years agoAdapt piaudio to work on PiStorm + A314 emulation
beeanyew [Tue, 18 May 2021 11:53:01 +0000 (13:53 +0200)]
Adapt piaudio to work on PiStorm + A314 emulation

Maybe, maybe not, I have no idea. Untested, and will remain so, by me.

3 years agoMove ethernet.py to a314/files_pi
beeanyew [Tue, 18 May 2021 11:43:35 +0000 (13:43 +0200)]
Move ethernet.py to a314/files_pi

3 years agoRemove non-working binaries
beeanyew [Tue, 18 May 2021 11:33:46 +0000 (13:33 +0200)]
Remove non-working binaries

3 years agoAdapt a314eth to work on PiStorm + A314 emulation
beeanyew [Tue, 18 May 2021 11:33:06 +0000 (13:33 +0200)]
Adapt a314eth to work on PiStorm + A314 emulation

Please don't ask me how this works, I have no idea.

3 years agoAdapt a314fs to work on PiStorm + A314 emulation
beeanyew [Tue, 18 May 2021 11:09:45 +0000 (13:09 +0200)]
Adapt a314fs to work on PiStorm + A314 emulation

Requires a314fs in L:, a314fs-mountlist in DEVS:DosDrivers and somehow a314fs.py started after the emulator but before mounting the drive.
Untested.

3 years agoAdjust picmd.py
beeanyew [Tue, 18 May 2021 03:35:27 +0000 (05:35 +0200)]
Adjust picmd.py

Okay, maybe the config files don't need to be in some sudo-only directory.

3 years agoAdapt picmd to work on PiStorm + A314 emulation
beeanyew [Tue, 18 May 2021 03:15:42 +0000 (05:15 +0200)]
Adapt picmd to work on PiStorm + A314 emulation

Requires both .cfg files from `files_pi` to be in /etc/opt/a314, and picmd.py needs to be started after the emulator.
I have no idea how to better streamline this, but I'm sure someone will come up with a brilliant solution.

3 years agoUpdate Pi4 raylib dependencies
beeanyew [Mon, 17 May 2021 20:39:04 +0000 (22:39 +0200)]
Update Pi4 raylib dependencies

3 years ago[GOOF] Actually put the new a314.device in the correct directory
beeanyew [Mon, 17 May 2021 19:46:29 +0000 (21:46 +0200)]
[GOOF] Actually put the new a314.device in the correct directory

3 years agoA314 updates
beeanyew [Mon, 17 May 2021 19:43:03 +0000 (21:43 +0200)]
A314 updates

Replace a314.device with one suitable for PiStorm
Adjust address of writes/reads to/from the emulated device
Add missing includes to startup.c

3 years agoMerge pull request #27 from LinuxJedi/fix-tool-build
beeanyew [Mon, 17 May 2021 13:57:19 +0000 (15:57 +0200)]
Merge pull request #27 from LinuxJedi/fix-tool-build

Fix PiSimple build.sh

3 years agoFix PiSimple build.sh
Andrew Hutchings [Mon, 17 May 2021 13:53:38 +0000 (14:53 +0100)]
Fix PiSimple build.sh

proto/expansion.h is needed for GCC and it doesn't hurt VBCC, so let's
bring it back.

3 years agoAdd missing copyright to A314 source files
beeanyew [Mon, 17 May 2021 12:45:46 +0000 (14:45 +0200)]
Add missing copyright to A314 source files

3 years agoMerge pull request #26 from LinuxJedi/fix-tools
beeanyew [Mon, 17 May 2021 07:14:12 +0000 (09:14 +0200)]
Merge pull request #26 from LinuxJedi/fix-tools

Fix interact binaries

3 years agoFix interact binaries
Andrew Hutchings [Mon, 17 May 2021 06:59:32 +0000 (07:59 +0100)]
Fix interact binaries

PiStorm binary locked up the system on NTSC due to moving the window out
of the bounds of the screen. Now starts at a more sensible position.

PiSimple binary just needed recompiling. For some reason it wasn't
detecting the board.

3 years agoAdd A314 Amiga binaries
beeanyew [Sun, 16 May 2021 07:30:12 +0000 (09:30 +0200)]
Add A314 Amiga binaries

3 years agoGet rid of having to manually set pistorm_base_addr for PiStorm device SDK
beeanyew [Sun, 16 May 2021 06:05:56 +0000 (08:05 +0200)]
Get rid of having to manually set pistorm_base_addr for PiStorm device SDK

3 years agoTheoretically working A314 emulation
beeanyew [Sun, 16 May 2021 05:03:19 +0000 (07:03 +0200)]
Theoretically working A314 emulation

This most definitely requires a make clean and then make, due to all the header files edited.
I can't seem to build a314.device, so it's not included yet.

3 years agoUnbreak piscsi.h
beeanyew [Sun, 16 May 2021 04:05:45 +0000 (06:05 +0200)]
Unbreak piscsi.h

3 years agoFix PiSCSI bug that somehow only triggered with -lstdc++
beeanyew [Sun, 16 May 2021 02:49:41 +0000 (04:49 +0200)]
Fix PiSCSI bug that somehow only triggered with -lstdc++

3 years agoMerge pull request #25 from paulofduarte/wip-crap
beeanyew [Sun, 16 May 2021 00:07:55 +0000 (02:07 +0200)]
Merge pull request #25 from paulofduarte/wip-crap

Bringing A314 code from Niklas branch

3 years agoCleanup - Removed changes on the Makefile after merge with a314 branch.
Paulo Duarte [Sat, 15 May 2021 23:35:10 +0000 (00:35 +0100)]
Cleanup - Removed changes on the Makefile after merge with a314 branch.

3 years agoMerge remote-tracking branch 'niklasekstrom/autoconfig_a314' into wip-crap
Paulo Duarte [Sat, 15 May 2021 23:30:45 +0000 (00:30 +0100)]
Merge remote-tracking branch 'niklasekstrom/autoconfig_a314' into wip-crap

# Conflicts:
# .gitignore
# emulator.c
# run.sh

3 years agoMerge pull request #24 from LinuxJedi/os_3.2
beeanyew [Fri, 14 May 2021 21:20:52 +0000 (23:20 +0200)]
Merge pull request #24 from LinuxJedi/os_3.2

Add Kickstart 3.2 + more

3 years agoAdd Kickstart 3.2 + more
Andrew Hutchings [Fri, 14 May 2021 21:14:05 +0000 (22:14 +0100)]
Add Kickstart 3.2 + more

* Kickstart 3.2 confirmed to be v47
* Update PiStorm binary with recent dep code changes
* Add CopyMems to ADF and LHA scripts
* Add exec bit to CopyMems

3 years agoUpdate Pi-NET to new device driver framework
beeanyew [Fri, 14 May 2021 12:46:57 +0000 (14:46 +0200)]
Update Pi-NET to new device driver framework

3 years agoFix COPYRECT_EX check, speed up MEMCPY
beeanyew [Thu, 13 May 2021 22:20:45 +0000 (00:20 +0200)]
Fix COPYRECT_EX check, speed up MEMCPY

3 years agoFix platform write check bug
beeanyew [Thu, 13 May 2021 17:57:37 +0000 (19:57 +0200)]
Fix platform write check bug

3 years agoAdd makeshift PiStorm-powered CopyMem/Quick patcher
beeanyew [Thu, 13 May 2021 17:06:40 +0000 (19:06 +0200)]
Add makeshift PiStorm-powered CopyMem/Quick patcher

Probably doesn't work properly with MMU libraries installed, be advised.

3 years agoRemove CIA ovl enable write on boot, fix RTC size in default.cfg
beeanyew [Thu, 13 May 2021 15:38:22 +0000 (17:38 +0200)]
Remove CIA ovl enable write on boot, fix RTC size in default.cfg

3 years agoMake rtl/make.bat not anger people unnecessarily
beeanyew [Thu, 13 May 2021 07:27:36 +0000 (09:27 +0200)]
Make rtl/make.bat not anger people unnecessarily

3 years agoUpdated PiSCSI readme again
beeanyew [Thu, 13 May 2021 05:46:37 +0000 (07:46 +0200)]
Updated PiSCSI readme again

3 years agoMore PiSCSI readme updates
beeanyew [Thu, 13 May 2021 01:32:28 +0000 (03:32 +0200)]
More PiSCSI readme updates

3 years agoUpdate PiSCSI readme
beeanyew [Thu, 13 May 2021 01:27:30 +0000 (03:27 +0200)]
Update PiSCSI readme

3 years agoRemove debug output
beeanyew [Wed, 12 May 2021 15:45:15 +0000 (17:45 +0200)]
Remove debug output

3 years ago[MEGA-WIP] Arbitrary block size support for PiSCSI
beeanyew [Wed, 12 May 2021 15:42:10 +0000 (17:42 +0200)]
[MEGA-WIP] Arbitrary block size support for PiSCSI

This has not been very thoroughly tested. Yet.

3 years agoFix stupid typo
beeanyew [Wed, 12 May 2021 14:59:28 +0000 (16:59 +0200)]
Fix stupid typo

3 years agoShut down RTG thread with emulator
beeanyew [Wed, 12 May 2021 03:46:06 +0000 (05:46 +0200)]
Shut down RTG thread with emulator

3 years agoUpdate buptest, chmod +x some scripts.
beeanyew [Wed, 12 May 2021 03:08:58 +0000 (04:08 +0100)]
Update buptest, chmod +x some scripts.

3 years agoFix scaling VS aspect ratio things, fix P2D data problems
beeanyew [Wed, 12 May 2021 00:49:25 +0000 (02:49 +0200)]
Fix scaling VS aspect ratio things, fix P2D data problems

3 years agoFix scaling/centering for RTG modes
beeanyew [Tue, 11 May 2021 19:12:17 +0000 (21:12 +0200)]
Fix scaling/centering for RTG modes