Henrik Rydgård
671ba6356b
Remove logspam from Android text rendering, oops
2024-10-23 15:07:27 +02:00
Henrik Rydgård
26de955c77
Warning fixes, add warning to Cave Story if skip buffer effects is on
2024-10-22 11:56:08 +02:00
Henrik Rydgård
a6a189c24d
An old version of android had strict JNI validation of UTF-8 strings enabled. Let's pass it.
2024-10-22 11:02:26 +02:00
Henrik Rydgård
843fe22968
Remove superfluous .c_str()
2024-10-17 22:21:07 +02:00
Henrik Rydgård
97c5094ff2
Cleanup, fix the shader viewer UI
2024-10-17 21:43:03 +02:00
Henrik Rydgård
e49d94ad11
Unify the MeasureString caching code
2024-10-16 14:39:21 +02:00
Henrik Rydgård
3def2ddb00
Avoid another allocation, this time with atlas fonts
2024-10-16 14:39:21 +02:00
Henrik Rydgård
ce980af01e
TextDrawer: Improve performance for text wrapping (by measuring without wrapping first)
2024-10-16 13:35:32 +02:00
Henrik Rydgård
e0c12c9547
More lint warning fixes
2024-10-10 10:52:45 +02:00
Henrik Rydgård
eccd7f3767
More const/static-ification
2024-09-17 15:22:37 +02:00
Henrik Rydgård
e504973cf0
On load state failure, don't go off reloading another rewind state, unless we were actually rewinding.
2024-07-20 00:40:21 +02:00
Henrik Rydgård
e01ca5b057
Logging API change (refactor) ( #19324 )
...
* Rename LogType to Log
* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.
* Mac/ARM64 buildfix
* Do the same with the hle result log macros
* Rename the log names to mixed case while at it.
* iOS buildfix
* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Henrik Rydgård
4c4fcabc5e
iOS: Disable the swipe-back gesture in-game, to maximize touch responsiveness
2024-06-19 22:43:42 +02:00
Henrik Rydgård
510cf1891b
Random UWP text bugfix. Some warning fixes.
2024-06-05 12:38:43 +02:00
Henrik Rydgård
81c642e2b2
Fix scaling issues in cocoa text drawer
2024-06-01 13:44:11 +02:00
Henrik Rydgård
65fb1a5aa7
Merge pull request #19224 from hrydgard/more-ios-fixes
...
More iOS fixes
2024-06-01 13:14:39 +02:00
Henrik Rydgård
929ced7acc
Minor cleanup in draw_text_cocoa
2024-06-01 12:28:13 +02:00
Henrik Rydgård
28cf69f67e
Remove duplicate code from the text rendering backends
2024-06-01 09:58:58 +02:00
Henrik Rydgård
d6b6d087c0
Make the font lifecycle more similar between the backends.
2024-06-01 09:43:11 +02:00
Henrik Rydgård
65126668e0
Mac/iOS font rendering - Fix line breaking
2024-05-31 23:07:04 +02:00
Henrik Rydgård
e10858d8b5
Mac/iOS: Enable ARC on draw_text_cocoa.mm
2024-05-31 22:21:43 +02:00
Henrik Rydgård
4051f34758
Implement MeasureStringRect generically based on MeasureString
2024-05-31 21:11:48 +02:00
Henrik Rydgård
5b0007f391
Remove unused and broken text rotation code
2024-05-31 20:58:53 +02:00
Henrik Rydgård
06f7f39e3e
Unify SDL's version of the function too.
2024-05-31 19:23:47 +02:00
Henrik Rydgård
2061f04885
Also remove DrawString in the SDL text backend
2024-05-31 19:08:25 +02:00
Henrik Rydgård
423f7620dd
Also implement for Cocoa.
2024-05-31 19:00:23 +02:00
Henrik Rydgård
533f8f06be
Unify DrawString between Windows, UWP and Android. More to come.
2024-05-31 17:27:59 +02:00
Henrik Rydgård
5999690af5
i18n: Remove our awkward ampersand-escape support, except in [DesktopUI]
2024-05-31 09:45:59 +02:00
Henrik Rydgård
c02e5b36ab
Use the default UI font, bugfixes
2024-05-29 19:29:49 +02:00
Henrik Rydgård
021d2d5ef0
Scaling and line spacing work
2024-05-29 18:52:39 +02:00
Henrik Rydgård
5f4257bf4a
Get it to build and run on iOS too, not just Mac. There's some odd DPI issue though.
2024-05-29 18:52:39 +02:00
Henrik Rydgård
0bbaaef787
Seems to be working now, though need to figure out which font face we can use.
2024-05-29 18:52:39 +02:00
Henrik Rydgård
3965c1ae6b
Start implementing cocoa-based text rendering. Doesn't work yet, renders garbage.
2024-05-29 18:52:39 +02:00
Henrik Rydgård
7e7d1d587a
Start lifting up common parts to the base class
2024-05-29 18:52:39 +02:00
Henrik Rydgård
5d8560e379
Text wrapping bugfixes
2024-05-25 09:16:00 +02:00
Henrik Rydgård
ccbcf1369b
Convert DrawString* functions to use std::string_view
2024-05-24 22:52:51 +02:00
Henrik Rydgård
804f31f424
Convert MeasureString* functions to use std::string_view
2024-05-24 14:16:40 +02:00
Henrik Rydgård
8112e51c13
More string_view
2024-05-24 13:42:49 +02:00
Henrik Rydgård
4b45bde38f
Convert WordWrapper to use std::string_view
2024-05-24 13:39:49 +02:00
Henrik Rydgård
f6ca8101e0
Start getting string_view into WordWrapper
2024-05-24 12:40:11 +02:00
Henrik Rydgård
d39d4270e1
More std::string_view
2024-05-24 12:40:10 +02:00
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