Commit Graph

29 Commits

Author SHA1 Message Date
Henrik Rydgård
4108dcec23 Unify CalculateTextScale 2023-07-17 12:02:32 +02:00
Henrik Rydgård
4ae3c519e2 Add assorted null checks for safety
More probably needed. Should at least hopefully fix the leaderboard crash reported in #17631

Will try to do something more systematic later.
2023-07-10 19:27:07 +02:00
Henrik Rydgård
0bf0a4a1ef UIContext: Add an easy way to draw drop shadows under rectangular things 2023-07-08 18:25:00 +02: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
0f52954eae Minor log cleanups 2023-01-30 14:38:05 +01:00
Henrik Rydgård
91cca1c980 Improve scissor rect clipping. Affected D3D11 validation when maximizing/minimizing. 2023-01-24 16:48:13 +01:00
Henrik Rydgård
a5747d53b3 Fix some report spam 2023-01-02 22:23:50 +01:00
Unknown W. Brackets
68fb7a477d UI: Fix tiny reverse dependency. 2022-12-27 15:18:35 -08:00
Henrik Rydgård
ec6d330ae4 Move AsyncImageFileView to Common, which required some more shuffling around of stuff. 2022-11-21 20:38:20 +01:00
Henrik Rydgård
f269137c78 Revert "Vulkan: Create depth/stencil buffers on demand"
This reverts commit be37de106c.
2022-10-13 22:39:47 +02:00
Henrik Rydgård
be37de106c Vulkan: Create depth/stencil buffers on demand 2022-10-09 20:28:32 +02:00
Henrik Rydgård
0b9d6f9cb0 Log the screen tag when logging scissor errors. 2022-09-16 10:32:09 +02:00
Unknown W. Brackets
da53ab8ef9 UI: Validate UI scissor inside bounds. 2022-08-28 09:01:35 -07:00
Henrik Rydgård
2178567ba0 UWP: Fix loading the default theme.
Hopefully takes care of #15496

See also #15464
2022-04-24 14:12:15 +02:00
iota97
53fe6940df Allow to change atlas per theme 2022-04-01 09:59:40 +02:00
Henrik Rydgård
ce2995f952 Add UI Tint/Saturation settings
Does the color tinting in the vertex shader.
2022-02-18 14:23:57 +01:00
Unknown W. Brackets
0d4af49590 UI: Clarify error message.
Include both files, even if the platform only uses one of the two.
2021-12-11 09:01:15 -08:00
Henrik Rydgård
d4237fd542 Split the atlas into three, well two, but two different cases for the fonts.
Platforms that can use OS fonts don't need font_atlas.zim but they do
need ascii font for debug, so does use asciifont_atlas.zim.
2021-12-10 23:22:08 +01:00
Unknown W. Brackets
eb81d5b30b UI: Support a second texture for just fonts.
Will still allow using fonts between both.
2021-10-19 10:01:17 -07:00
Unknown W. Brackets
d2ff66a660 UI: Clear textures on Begin.
On GLES, saw a texture bound to slot 1 when UI started to draw after an
emu frame, which caused a crash because there was no sampler.  Let's just
explicitly flush.
2021-10-12 20:34:43 -07:00
Henrik Rydgård
59b2604c14 Consistent sampler modes in UI to make Mali happy 2021-10-08 22:20:57 +02:00
Henrik Rydgård
944d2c3aa1 Set texture clamp mode for UI drawing. Fixes #14977, hopefully without breaking anything else.. 2021-10-08 00:22:50 +02:00
iota97
003a34ccf5 Increase few column width for long translation, make control binding a bit taller 2021-09-28 18:02:37 +02:00
Henrik Rydgård
5e501fa9fc Fix minor rendering glitch in PPSSPP's menus on iOS 2021-01-31 15:49:52 +01:00
Henrik Rydgård
02a771c049 Add texture to flat shaded test. 2021-01-17 13:44:57 +01:00