- Use SDL_Texture and SDL_Render to for DibBitmap and Display operations
- SubBitmap class was created to handle suballocating dibs since the old method required direct pixel access
- Font buffer is no longer used. Back buffer is forced valid and drawn to the screen.
There used to be a blt bug that would occur when cxScreen was an odd value. Now that SDL API is being used for blt operations, this issue no longer exists.
In the initial Android port, stdio FILE I/O was being used to read files. However, files in Android assets cannot be read via this method. To hack around this, the data .pdbs were copied out of Android assets into a location where they could be read.
But now the game data read with the host I/O code. The host I/O is code is responsible for ensuring that data can be read from Android assets. Hence, the old .pdb copying hack is no longer necessary.
Preferences have keys as defined in ht.h. These keys can be used to read/write preferences. Preferences are saved in a .json on the disk.
This is much easier to work with than the old presences binary structures as it doesn’t require preference versioning.
Using NULL as the main data dir will tell the SDL API (the current host file I/O) to fallthough and read from the .apk assets. This is currently desirable in every existing case.
SdlPackFile can now push and pop directories using host file I/O. This allows for reading from directories as though they were .pdbs (like the htdata2432 dir) while maintaining the pushed hierarchy. pdbs can still be used.
OTG mouse events don’t get processed correctly. With this hint removed,
SDL mouse events will be handled as touch events and touch will raise
fake mouse events.
Android’s system back button will be processed as vchrBack which will
select kidcCancel on most forms. This causes the user to feel that the
game is more integrated with the OS.
Due to the repetition, this 1422x913 version of the title screen
background doesn’t look overly great. However, it’s better than using a
small image that can’t fill larger screens.