Commit Graph
194 Commits
Author SHA1 Message Date
Henrik Rydgård 1ea93e2913 Small refactor of text rect measurement. Add move/resize icons 2025-11-27 11:50:22 +01:00
Henrik Rydgård acd8cf70d0 SDL: Load font from VFS instead of using a file path.
Hopefully helps #21014
2025-11-24 00:55:12 +01:00
Henrik Rydgård 666808fb8c SDL: Correct font size handling 2025-11-23 22:26:32 +01:00
Henrik Rydgård bc17b7c822 iOS buildfix, SDL buildfix 2025-11-23 11:42:43 +01:00
Henrik Rydgård 1ae6d0f9f6 Installer script fix 2025-11-23 11:11:18 +01:00
Henrik Rydgård d1f6da81cb Add stb_rect_pack library, use it to pack our atlases way faster 2025-11-15 15:26:06 +01:00
Henrik Rydgård 915a88df60 AtlasGen: Separate pack and resolve steps 2025-11-15 15:26:06 +01:00
Henrik Rydgård 55d53bd29a Handle devices with really extreme DPIs. Fixes #21001
I thought I did this already but apparently not, or it got lost in a
branch.
2025-11-15 15:26:06 +01:00
Henrik Rydgård 8052c15f61 Fix references to the old font files 2025-11-14 10:10:44 +01:00
Henrik Rydgård bc024da16c More tweaks 2025-11-10 16:02:21 +01:00
Henrik Rydgård bf5e524243 Add multi-font support to the final text-rendering backend (SDL_ttf) 2025-11-09 08:52:21 +01:00
Henrik Rydgård 582c2e28ca Same for Qt 2025-11-09 08:52:21 +01:00
Henrik Rydgård 59ab9e5682 Fix font loading in cocoa as well. 2025-11-09 08:52:21 +01:00
Henrik Rydgård 2fce2da709 Apply the font system rework to Android as well 2025-11-09 08:52:21 +01:00
Henrik Rydgård bf5ded9c02 Fix font loading for the UWP backend, although wacky rendering issues remain 2025-11-09 08:52:21 +01:00
Henrik Rydgård 4283e66a12 Font style rework: Windows part 2025-11-09 08:52:21 +01:00
Henrik Rydgård 6d1973edfb Add banners on the top of settings pages, if editing game-specific settings show the icon. 2025-11-09 08:51:41 +01:00
Henrik Rydgård 56d3dae334 Avoid regenerating the UI Atlas if unnecessary (faster resize) 2025-11-06 23:44:55 +01:00
Henrik Rydgård f44e0505ea Fix SDL font rendering
Fixes #20933
2025-10-30 09:40:48 +01:00
Henrik Rydgård e37c0cbef3 Introduce SimpleBaseDialogScreen, TabbedBaseDialogScreen's simpler cousin 2025-10-29 08:39:59 +01:00
Henrik Rydgård b1d14d8221 More upload UI polish 2025-10-27 12:20:24 +01:00
Henrik Rydgård 2bc2d9c6f9 Minor UIAtlas code cleanup 2025-10-21 14:49:55 +02:00
Henrik Rydgård 3ae0057285 UIAtlas: Fix bug when adding 1px border to images (was a no-op by accident) 2025-10-21 11:08:53 +02:00
Henrik Rydgård 2b6b951f78 Fix alpha in drawtext for RGBA8888 format.
Should fix #20879
2025-10-17 08:57:12 +02:00
Henrik Rydgård e5f52854d8 Atlas SVG: Add 1px transparent border to images without shadows, to ensure consistent filtering 2025-10-16 16:45:59 +02:00
Henrik Rydgård 3736702f93 Use the correct blending operator when compositing the drop shadow 2025-10-16 11:07:05 +02:00
Henrik Rydgård c08e48bf82 Only shadow the UI images that are used for line-art in-game buttons. 2025-10-16 11:07:05 +02:00
Henrik Rydgård 21e0c496c4 Convert loaded pngs and zims to premultiplied alpha 2025-10-16 11:07:05 +02:00
Henrik Rydgård f0b5209908 Convert all UI atlas images to premultiplied alpha format 2025-10-16 11:07:05 +02:00
Henrik Rydgård b082e94edb Initial work on using premultiplied alpha in the UI 2025-10-16 11:07:05 +02:00
Henrik Rydgård 1efd0b95b8 Improve logging of UI atlas generation, don't generate debug png (oops) 2025-09-23 13:40:39 -06:00
Henrik Rydgård 10b0d94940 Remove some redundant code, minor optimization 2025-09-23 11:10:46 -06:00
Henrik Rydgård 27ed337d99 Move more pngs into the images.svg file 2025-09-22 15:24:10 -06:00
Henrik Rydgård 0bb70de3f0 Correct the drop shadow 2025-09-19 11:23:48 -06:00
Henrik Rydgård e03de7b9da Add some quick and dirty drop shadow code. Now the generated images look good! 2025-09-19 10:57:29 -06:00
Henrik Rydgård 74874bb81e Test a multi-shape image 2025-09-19 10:31:51 -06:00
Henrik Rydgård bceb989811 Remove ImageDesc from AtlasGen.cpp/h 2025-09-18 11:26:19 -06:00
Henrik Rydgård ca2a7c93a0 Make ToAtlasImage a global function instead of a method on ImageDesc 2025-09-18 11:03:50 -06:00
Henrik Rydgård 95703d2d9c Delete "C++ table" output from atlastool 2025-09-18 10:58:27 -06:00
Henrik Rydgård 641fa40d82 Runtime atlas gen: Reorganize, remove global_id 2025-09-17 10:46:08 -06:00
Henrik Rydgård 52f2475353 Remove the LoadImage method (the two users have quite different needs) 2025-09-17 10:37:42 -06:00
Henrik Rydgård 0298536efa Separate images from data in bucketer 2025-09-17 10:28:08 -06:00
Henrik Rydgård d2512817bd checkpoint 2025-09-17 10:10:59 -06:00
Henrik Rydgård 81819642d8 Minor cleanups 2025-09-17 10:01:00 -06:00
Henrik Rydgård 82cf6d7c17 AtlasGen: Remove Effect support 2025-09-17 09:49:54 -06:00
Henrik Rydgård 52c4c31508 Runtime atlas generation 2025-09-17 09:49:54 -06:00
Henrik Rydgård 947ddf865f Extract some duplicated code into a pngSave function 2025-09-15 11:46:54 -06:00
Henrik Rydgård f856beb157 Move a lot of the atlas logic to Common/Render/AtlasGen.cpp/h, code
cleanup
2025-09-12 12:17:11 -06:00
Henrik Rydgård b472eb8b8b Remove a lot of unnecessary string constructors 2025-08-31 15:49:29 +02:00
Henrik Rydgård 654b11cb39 Rework the UWP Xaudio backend a bit too. 2025-06-17 01:16:09 +02:00