Commit Graph
3886 Commits
Author SHA1 Message Date
Eugene Sandulenko ed8da34fff GRAPHICS: MACGUI: Remove leftover variable 2023-10-26 03:54:56 +02:00
Eugene Sandulenko 83a4a6002a GRAPHICS: MACGUI: Fix text reshuffling in MacTextCanvas 2023-10-26 03:39:49 +02:00
Eugene Sandulenko 58f05eeb24 GRAPHICS: MACGUI: Added more debug output to MacTextCanvas 2023-10-26 03:39:49 +02:00
Eugene Sandulenko 33c2fcfbf2 GRAPHCIS: MACGUI: Added debug printing methods to MacTextCanvas 2023-10-26 03:39:49 +02:00
Eugene Sandulenko 68e6f3a8ef GRAPHICS: MACGUI: Rewrote reshuffleParagraph() in MacTextCanvas to use chunks 2023-10-26 03:39:49 +02:00
Cameron Cawley 0a59113b43 GRAPHICS: Remove use of TransparentSurface in MacWindowManager 2023-10-24 20:16:34 +02:00
Cameron Cawley 6ee5aad258 GRAPHICS: Remove use of TransparentSurface in NinePatch code 2023-10-24 20:16:34 +02:00
Eugene Sandulenko 67ab2657d8 GRAPHICS: MACGUI: Split out MacTextCanvas into a separate file 2023-10-24 02:38:17 +02:00
Eugene Sandulenko 37deafe413 GRAPHICS: MACGUI: Moved more methods to MacTextCanvas 2023-10-24 02:38:17 +02:00
Eugene Sandulenko 4e614216b2 GRAPHICS: MACGUI: Add equality test for MacFontRun 2023-10-24 02:38:14 +02:00
Scott Percival e44f40318e GRAPHICS: MACGUI: Fix MacText::getMouseWord()/getMouseItem()
Fixes the text entry puzzles in Wrath of the Gods.
2023-10-22 17:19:54 +02:00
Scott Percival 52fb94307c GRAPHICS: MACGUI: Add guardrails for MacWindow::updateInnerDims() 2023-10-22 17:19:54 +02:00
Eugene Sandulenko d47d26547b GRAPHICS: MACGUI: Reduced code duplication in MacText constructors 2023-10-22 09:18:32 -06:00
Kaloyan Chehlarski b0de3e786c GRAPHICS: Fix AVX2 path for MultiplyBlend
Applies the same fixes to multiply blending in the AVX2
optimized path that were previously applied to the SSE2 path.
Namely, alpha blending and colors now both blend correctly
2023-10-22 00:25:56 +03:00
Kaloyan Chehlarski 0d0aa24df3 GRAPHICS: Allow AVX2 optimized blit path to build
The way the SIMD blitting paths were previously organized
ensured that the AVX2 one would never actually build. This
commit separates the different implementations into
classes with differing names, ensuring the shadowing
cannot occur.
2023-10-22 00:25:56 +03:00
Kaloyan Chehlarski c82dd21fa7 GRAPHICS: JANITORIAL: Convert spaces to tabs 2023-10-22 00:25:56 +03:00
Kaloyan Chehlarski b115d8d019 GRAPHICS: Fix SSE2 path MultiplyBlend
The multiply blender in the SSE2 optimized path for
TransparentSurface blitting no longer produces wrong
colors and incorrect alpha blending.
2023-10-22 00:25:56 +03:00
Eugene Sandulenko 0d40edb121 GRAPHICS: MACGUI: Renamed _bgcolor to _tbgcolor to avoid clashes with MacWidget 2023-10-19 22:28:37 -06:00
Eugene Sandulenko 9ee23562fd GRAPHICS: MACGUI: Fix tail chunks in MacText 2023-10-19 22:28:37 -06:00
Eugene Sandulenko 4f15a3817a GRAPHICS: MACGUI: Added more debug output to MacText rendering 2023-10-19 22:28:37 -06:00
Eugene Sandulenko 825fcda83c GRAPHICS: MACGUI: Fix table parsing in MacText 2023-10-19 22:28:37 -06:00
Eugene Sandulenko b859f7d013 GRAPHICS: MACGUI: Refactored more methods into MacTextCanvas 2023-10-19 22:28:37 -06:00
Torbjörn Andersson e5e5f049be GRAPHICS: Implement kMacFontCondense and kMacFontExtend
Judging by the experiments I made in a Mac emulator, condensed and
extended slant simply decreases and increases the glyph width by one.
You'd think it would depend on the font size, but apparently not. It is
possible to use both condensed and extended slant at the same time, and
it's just as useless as it sounds.
2023-10-16 17:40:29 +02:00
Torbjörn Andersson 3e0a726cb4 GRAPHICS: Calculate bitmapOffset correctly
We have to take into consideration that text can use any combination of
slants. Otherwise, glyphs may spill into memory used for other glyphs.
This was probably only an issue when the glyph storage crossed the
boundary from one byte length into another.
2023-10-16 17:40:29 +02:00
Torbjörn Andersson 789f2dfaf1 GRAPHICS: Make sure outline glyphs aren't cropped on the left side
This will offset all outlined glyphs one pixel to the right. I hope that
doesn't cause issues elsewhere.
2023-10-16 17:40:29 +02:00
Torbjörn Andersson 5009bb67e4 GRAPHICS: Fix bold text to be more (hopefully exeactly) like the original
QuickDraw appears to simply draw the character once normally and once
shifted one pixel to the right. This was perhaps most noticeable on
small characters with lots of edges. (I noticed it first on "W" in
Geneva 9.)
2023-10-16 17:40:29 +02:00
Torbjörn Andersson e22310c2ad GRAPHICS: Fix building with DEBUGSCALING 2023-10-16 17:40:29 +02:00
Filippos Karapetis e918ce9bc6 GRAPHICS: Revert incorrect changes to error messages 2023-10-16 17:31:30 +02:00
Filippos Karapetis ca36ea9403 GRAPHICS: Fix typos 2023-10-16 17:31:30 +02:00
Cameron Cawley 1e4abf786b GRAPHICS: Use crossBlit more for converting surfaces 2023-10-16 17:31:30 +02:00
Cameron Cawley 34d04a76cb GRAPHICS: Support 3bpp destinations using crossBlit functions 2023-10-16 17:31:30 +02:00
D G Turner 7ed7882640 GRAPHICS: MACGUI: Fix Signed vs. Unsigned GCC Compiler Warning 2023-10-15 19:13:07 +01:00
Eugene Sandulenko c57bc10806 GRAPHICS: MACGUI: Fix crash when adding newline in MacText
The behaviour is now badly broken, but at least it will not crash
2023-10-14 17:29:02 -07:00
Eugene Sandulenko f24f262877 GRAPHICS: MACGUI: Fix indented paragraph wrapping in MacText
Since the total width was miscalculated, we ended up with chopped words
2023-10-14 12:27:28 -07:00
Eugene Sandulenko e8f008aaba GRAPHICS: MACGUI: Fix indenting paragraphs in MacText 2023-10-14 12:27:28 -07:00
Eugene Sandulenko 93e393e943 GRAPHICS: MACGUI: Added more debug output to MacText 2023-10-14 01:54:05 +02:00
Eugene Sandulenko ec986dfb59 GRAPHICS: MACGUI: Mark table headers as bold in Markdown 2023-10-14 01:54:05 +02:00
Eugene Sandulenko 0a32c7901c GRAPHICS: MACGUI: Properly pass table cell alignment from Markdown to MacText 2023-10-14 01:54:05 +02:00
Eugene Sandulenko bf851f574d GRAPHICS: MACGUI: Fix table cell rendering in MacText 2023-10-14 01:54:04 +02:00
Eugene Sandulenko 8a2ebba04e GRAPHICS: MACGUI: Properly compute table height in MacText 2023-10-14 01:54:04 +02:00
Eugene Sandulenko c1969faa7b GRAPHICS: MACGUI: Plug memory leak 2023-10-14 01:54:01 +02:00
Torbjörn Andersson ce65e5080c GRAPHICS: Fix namespace comments 2023-10-13 19:46:15 +02:00
Eugene Sandulenko 9c17c1cb46 GRAPHICS: MACGUI: Fix compilation with debug output enabled in MacText 2023-10-13 00:14:48 +02:00
Eugene Sandulenko d133aeb046 GRAPHICS: MACGUI: Release allocated objects in MacText 2023-10-12 17:23:20 +02:00
Eugene Sandulenko ac388673e9 GRAPHICS: MACGUI: Fix table width computation in MacText 2023-10-10 23:23:39 +02:00
Eugene Sandulenko fa3883c86e GRAPHICS: MACGUI: Initial attempt to render tables in MacText 2023-10-10 01:45:36 +02:00
Eugene Sandulenko 4fba78c13d GRAPHICS: MACGUI: Render table cells in MacText 2023-10-09 00:22:15 +02:00
Eugene Sandulenko b2a7bad618 GRAPHICS: MACGUI: Moved more methods int MacTextCanvas 2023-10-09 00:22:15 +02:00
Eugene Sandulenko 6004d955ea GRAPHICS: MACGUI: Moved several methods to MacTextCanvas 2023-10-09 00:22:15 +02:00
Eugene Sandulenko 74910523c3 GRAPHICS: MACGUI: Turned MacTextCanvas into a class 2023-10-09 00:22:15 +02:00