Commit graph

56 commits

Author SHA1 Message Date
Clownacy
4f7db164d6 Overhauled graphics system
Along with being more accurate to the original, this fixes switching out
of fullscreen causing textures to disappear. This was caused by DirectX
destroying textures that are marked as render-targets when a device-loss
occurs. SDL2 doesn't do anything to recover them, unlike regular
textures, so my solution is just to avoid render-target textures
entirely.

On the upside, this should make drawing text to surfaces much faster,
since we're not reading back bitmaps from the GPU.
2019-01-30 21:07:47 +00:00
Clownacy
90ef30bece Added option for fonts to be loaded from Windows
This restores some compatibility with Config.dat's font settings.
2019-01-29 14:20:25 +00:00
Clownacy
b325efd981 Improved Japanese build a little 2019-01-25 12:02:52 +00:00
Clownacy
414fe76abc Safer UTF-8 decoder 2019-01-25 12:02:52 +00:00
Clownacy
69a2357ca3 Fixed font gamma-correction
Also did some cleanup.
2019-01-25 03:57:17 +00:00
Clownacy
3bb0435c27 Overhauled font system
Now with super-sexy accurate subpixel rendering and Japanese support
2019-01-24 17:36:18 +00:00