Henrik Rydgård
4de4dc1433
Remove some logspam on SDL builds
2024-01-29 12:34:44 +01:00
Henrik Rydgård
a811cbac80
Add proper checks for file type when picking a background image
...
Should fix some confusion, and also issues picking files from the
Download folder on Android where the filenames we get don't always have
extensions.
2024-01-27 12:03:01 +01:00
Henrik Rydgård
1553931163
SDL: Add more fallback font names, greatly speed up fallback font handling
2024-01-20 11:22:05 +01:00
Henrik Rydgård
2007621ec3
Add "Droid Sans Fallback" to the list of fallback fonts.
...
This can be easily installed on apt based distros using:
sudo apt install fonts-droid-fallback
And provides all the characters we need.
2024-01-19 22:53:16 +01:00
Henrik Rydgård
f73d0587d4
Comments, make locking more consistent in GameInfoCache
2024-01-19 14:56:29 +01:00
Henrik Rydgård
56c797e7f6
Fix possible hangs in ManagedTexture destruction. Change a thread name.
2024-01-15 10:47:16 +01:00
Henrik Rydgård
0fc3e2b777
Add string_view support to more UTF functions
2024-01-12 14:03:02 +01:00
Henrik Rydgård
d0817c4c0a
Vulkan: Fix trying to compare uninitialized parts of packed descriptors
...
Found by Valgrind.
Other minor cleanup, too.
2024-01-10 12:10:20 +01:00
Henrik Rydgård
d841f115e0
Small unrelated fix in ManagedTexture
2023-12-31 16:48:44 +01:00
Henrik Rydgård
126d88ecfc
Back out clearly inconsequential/useless .reserve() calls
2023-12-29 08:27:56 +01:00
Henrik Rydgård
bbcaeb9d13
Merge pull request #18557 from GermanAizek/reserve-add
...
Using reserve in different places PPSSPP
2023-12-15 12:28:21 +01:00
Herman Semenov
b8748ae9e5
[Common/File/GPU/Render/Input] Using reserve if possible
2023-12-15 14:00:51 +03:00
Henrik Rydgård
43a2af46ee
Fix error handling on texture creation failure
2023-12-15 10:47:20 +01:00
Henrik Rydgård
812b1024f0
Move TouchTestScreen to DevScreens
2023-12-14 19:01:19 +01:00
Henrik Rydgård
1ac780aacc
Reduce flicker on savestate screenshot load
2023-12-13 12:26:11 +01:00
Henrik Rydgård
f8927df9a6
Load savestate screenshots in the background
2023-12-13 12:07:23 +01:00
Henrik Rydgård
e5d2e09f02
Some code simplification
2023-12-13 10:45:42 +01:00
Henrik Rydgård
2aca8fe3f9
Get rid of more unnecessary uses of ManagedTexture
2023-12-12 23:13:45 +01:00
Henrik Rydgård
82bdc9ec50
Add CreateTextureFromFileData (without ManagedTexture)
2023-12-12 22:24:13 +01:00
Henrik Rydgård
d2e10a058e
Some renaming
2023-12-12 22:15:55 +01:00
Henrik Rydgård
76c7540173
First part of UI texture loading refactor
2023-12-12 22:13:15 +01:00
Henrik Rydgård
a22450320b
Some minor changes and comments after memory profiling
2023-12-08 12:22:12 +01:00
Henrik Rydgård
d891aaf9cd
Remove code that pretended that we supported multiple vertex streams
...
Don't really see that we'll have much use for this feature, so simplify
it away. Only single vertex stream data is now supported by the thin3d
API.
2023-11-13 01:15:28 +01:00
Henrik Rydgård
8c821893f1
Android: Fix crashes on screen rotation
2023-10-09 18:24:43 +02:00
Henrik Rydgård
931ff4eb1e
Guaranteed gap-free rendering of waves background
2023-10-04 17:07:55 +02:00
Hoe Hao Cheng
28edae016e
SDL: fallback to atlas if SDL2_ttf is <2.0.18
2023-09-25 10:07:30 +08:00
Henrik Rydgård
3aed81d51b
Merge pull request #18170 from hch12907/sdl-ttf
...
ci: use pkgconfig as a fallback for finding SDL2_ttf
2023-09-21 13:45:52 +02:00
Hoe Hao Cheng
b768210797
ci: use pkgconfig as a fallback for finding SDL2_ttf
2023-09-19 00:51:19 +08:00
Henrik Rydgård
8f88442343
SDL ttf rendering: Try two 4444 tex formats to find one that works.
2023-09-18 11:48:28 +02:00
Hoe Hao Cheng
0a5937051a
SDL: let's not remove the candidate fallback fonts
2023-08-23 13:39:16 +08:00
Unknown W. Brackets
2aa4592330
SDL: Skip FcFini() call, causes crashes.
...
Apparently this is a relatively well known problem and various people have
commented this out, including in Chromium for the last 10 years...
2023-08-13 19:36:17 -07:00
Henrik Rydgård
ab685be566
Windows UWP: Enable color emoji rendering through DirectWrite
2023-08-06 17:25:20 +02:00
Henrik Rydgård
63cfe28f61
Implement color emoji support on Android
2023-08-06 15:14:29 +02:00
Hoe Hao Cheng
4d7e949f23
SDL: text alignment fix
2023-08-03 20:54:21 +08:00
Hoe Hao Cheng
c56f302e51
SDL: address comments on #17780
2023-07-30 16:25:36 +08:00
Hoe Hao Cheng
aaa7e90174
SDL: fix a curious crash
2023-07-29 03:10:00 +08:00
Hoe Hao Cheng
1c890be702
Use common UTF8 infrastructure instead of rewriting one
2023-07-29 03:10:00 +08:00
Hoe Hao Cheng
f88d1a287e
SDL: implement font fallback for TextDrawerSDL
2023-07-29 03:09:57 +08:00
Hoe Hao Cheng
2b826b5614
SDL: implement TextDrawer using SDL2_ttf
2023-07-25 13:05:32 +08:00
Henrik Rydgård
ab6e902fea
Make naett work on Android, UWP, Mac. Exclude on Linux
2023-07-21 10:28:31 +02:00
Henrik Rydgård
6b75bbf64a
Add support for line breaks in TextDrawerWin32::MeasureString. Sometimes useful.
...
And actually consistent with the other backends.
2023-07-16 21:58:47 +02:00
Henrik Rydgård
ac88e73768
TextDrawerAndroid: Handle a null fontName, saw some crash reports that looked like that.
2023-05-05 23:40:06 +02:00
haoruiwang
7cbb7a09e5
[what][style][gpu] some coding style refine
2023-04-18 19:18:38 +08:00
Henrik Rydgård
3b39e9e068
Turn the VFS into a class, to be able to reuse it for other purposes.
2023-03-06 16:42:47 +01:00
Henrik Rydgård
970f7993df
Android: Make font rendering work even absent support for R4G4B4A4 textures.
...
This shouldn't normally happen as conforming drivers are required to
support that texture format, but the software driver that we
accidentally choose on Poco C40 (see issue #16391 ) doesn't.
That we choose that driver will be fixed separately. This fix on its own
at least lets the user comfortably navigate to settings and switch to
OpenGL.
2023-02-28 00:01:29 +01:00
Henrik Rydgård
8b431b39ba
Wrap the display globals in a struct ( #16998 )
...
* Wrap the display globals in a struct
Makes it easier to search/replace these, for future refactorings.
* Some renaming
* Qt buildfix, also fix the Qt build on Mac (got broken with battery changes)
* Attempt at buildfixing ios
* UWP buildfix
2023-02-25 13:09:44 +01:00
Henrik Rydgård
a5aac94a78
Add a debug check in drawbuffer
2022-12-22 11:13:52 +01:00
Unknown W. Brackets
9cfcbc46e6
Global: Cleanup initialization/pointer checks.
...
Cleaning up a lot of cases of uninitialized data, unchecked return values
for failures, and similar.
2022-12-10 21:13:36 -08:00
Unknown W. Brackets
a7b7bf7826
Global: Set many read-only params as const.
...
This makes what they do and which args to use clearer, if nothing else.
2022-12-10 21:13:36 -08:00
Henrik Rydgård
cdb830f390
Minor optimization/cleanup
2022-12-10 12:05:40 +01:00