47 Commits
Author SHA1 Message Date
StoneVerve 668daec6a1 GRAPHICS: MACGUI: Do not use bilinear filtering for MacText images
Improves speed in the Help Dialog
2026-03-18 16:41:45 +01:00
Eugene Sandulenko 418f97a952 GRAPHICS: MACGUI: Rename class variables 2026-02-20 01:13:16 +01:00
Eugene Sandulenko fd6ddff123 GRAPHICS: MACGUI: Added two masks to MacText
One mask is for characters-only, and another one for individual
string bboxes
2026-02-20 01:10:55 +01:00
Gulraiz ff69b5a06f GUI: Restrict max width of scaled pictures in Help 2026-01-26 22:05:46 +03:00
Eugene Sandulenko 100acf2fd0 JANITORIAL: Remove trailing spaces 2025-09-21 22:12:39 +02:00
Scott Percival 61ec96df11 GRAPHICS: MACGUI: Add debugging output to getTextChunk 2025-05-09 06:18:28 +08:00
dasbidyendu 3c8be58fbc JANITORIAL: Fix comment indentation 2025-04-25 18:32:49 +08:00
dasbidyendu 6b7e566818 JANITORIAL: Cleaned up mactext-canvas 2025-04-25 18:32:49 +08:00
dasbidyendu aec6e60066 JANITORIAL: Remove excessive vertical whitespaces
Remove unnecessary vertical whitespaces from code.
2025-04-25 18:32:49 +08:00
dasbidyendu da1b772ca9 MACGUI: Null pointer and empty chunks tests in mactext , change cursor restoration issue in getmaxwidth.
- Check for null pointer before handling any operations in getChunkNum function.
- Check for empty chunks to avoid extra operations.
- avoid signed/unsigned issue in chunk position.
- avoid possible overflow in cursor restoration logic
2025-04-25 18:32:49 +08:00
dasbidyendu 65d49792e4 MACGUI: Improve chunk handling and add inline documentation in mactext-canvas.cpp
Added some checks to make sure The line continuations are not empty before adding them to the current line's word continuation to ensure consistency.

Also added some comments on previous code.

Made sure to append the chunks if it is within bounds.

Added the newChunk as a pointer to the current chunk.
2025-04-25 18:32:49 +08:00
Cameron Cawley ff530edcb1 GRAPHICS: Deprecate ManagedSurface methods that implicitly copy pixel data 2024-07-02 13:31:18 +01:00
Krish 1c1ed2e61e GRAPHICS: MACGUI: Fix compilation with DEBUG enabled 2024-06-03 14:01:15 +02:00
Hubert Maier a545fa7539 JANITORIAL: Fix extention typos in mactext-canvas.cpp 2024-05-18 13:52:31 +02:00
Cameron Cawley 248ab4ca15 GRAPHICS: MACGUI: Improve image quality in markdown documents 2024-05-09 15:19:17 +02:00
Eugene Sandulenko 2c33cfb478 GRAPHICS: MACGUI: Hid too noisy warning 2024-04-21 22:33:40 +02:00
hecmar007 558167eaa2 MACGUI WAGE: Handle \n in end of string case
Add logic to correctly add new line when a \n is present at the end of a string.
2024-04-01 18:21:24 +02:00
hecmar007 c6c80b9313 GRAPHICS: MACGUI: Process extra long words (#5703)
GRAPHICS:  MACGUI: Process extra long words

Added functionality to rewrap words that split into different lines.
2024-03-13 17:39:21 +01:00
Scott Percival 95b47042f0 GRAPHICS: MACGUI: Stop MacTextCanvas::chopChunk from removing last chunk
There needs to be at least one chunk per line of text, or else many
basic text operations will cause a crash.
2024-01-20 23:14:52 +01:00
Scott Percival b9003c145f GRAPHICS: MACGUI: Fix fgcolor conversion in MacText 2024-01-20 23:14:52 +01:00
elasota 9e13093610 GRAPHICS: Fix empty controlled statement warning 2023-12-11 23:07:20 +02:00
Eugene Sandulenko 63c8367ace GRAPHICS: MACGUI: Indicate presence of a table in debug output in MacTextCanvas 2023-11-25 19:46:40 -08:00
Eugene Sandulenko 92b03145a2 GRAPHICS: MACGUI: Disable MacText with tables resizing
The problem is more complex than it appears, so, disabling this
before the release, because the current code is removing
tables on resize
2023-11-24 19:48:24 +01:00
Eugene Sandulenko 446908f458 GRAPHICS: MACGUI: Fix crash on reshuffling text after table in Markdown
Array::insert_at() is calling destructor for old data, whuch was freeing
the _table pointer that we are copying to new element which led to
use-after-free.

This moves MacTextLine cleanup to MacTextCanvas.
2023-11-23 00:13:33 +01:00
Eugene Sandulenko ff0abf2b69 GRAPHICS: MACGUI: Fix crashes when dealing with empty MacTexts 2023-11-16 00:23:09 +01:00
Eugene Sandulenko 035fd6085b GRAPHICS: MACGUI: Added more debug output to MacTextCanvas 2023-11-04 07:31:35 +01:00
Eugene Sandulenko 7eac71a4c7 GRAPHICS: MACGUI: Fixed computation of image sizes in pixels in MacTextCanvas 2023-11-01 00:27:34 +01:00
Eugene Sandulenko 175bf5c001 GRAPHICS: MACGUI: Use image extensiosn for calculating image dimensions in MacTextCanvas 2023-11-01 00:16:00 +01:00
Eugene Sandulenko ddadee5daf GRAPHICS: MACGUI: Copy defaultFormatting to MacTextCanvas 2023-10-31 23:16:13 +01:00
Eugene Sandulenko fc00188eeb GRAPHICS: MACGUI: Parse image extension string into a fixed format 2023-10-31 22:55:14 +01:00
Eugene Sandulenko 7e4c81e1ff GRAPHICS: MACGUI: Pass image extensions from Markdown to MacTextCanvas 2023-10-31 22:55:09 +01:00
Eugene Sandulenko 4afcad492a GRAPHICS: MACGUI: Fixed numbered list indentation in MacTextCanvas 2023-10-31 01:02:19 +01:00
Eugene Sandulenko 2dbfef826d GRAPHICS: MACGUI: Added more debug output to MacTextCanvas 2023-10-31 01:01:38 +01:00
Eugene Sandulenko d4cea997f8 GRAPHICS: MACGUI: Hid noisy debug output in table rendering 2023-10-30 01:25:41 +01:00
Eugene Sandulenko 85ea0aa22e GRAPHICS: MACGUI: Wrap MaxTexCanvas table cell contents 2023-10-30 01:22:30 +01:00
Eugene Sandulenko ad5fe9f2bc GRAPHICS: MACGUI: Factored out MacTextCanvas::setMaxWidth() 2023-10-30 01:14:29 +01:00
Eugene Sandulenko 0652a4c246 GRAPHICS: MACGUI: Do not add extra line at end of the text when splitting MacText 2023-10-30 00:33:47 +01:00
Eugene Sandulenko ca299d7ae1 GRAPHICS: MACGUI: Fix MacTexCanvas rendereing debug output 2023-10-30 00:28:05 +01:00
D G Turner e851067c97 GRAPHICS: MACGUI: Fix Signed vs. Unsigned GCC Compiler Warning 2023-10-27 23:25:00 +01:00
Eugene Sandulenko 46e5e44da2 GRAPHICS: MACGUI: Hide MacTextCanvas debug output under compile-time macros 2023-10-27 02:30:28 +02:00
Eugene Sandulenko 2180be6b71 GRAPHICS: MACGUI: Restore paragraph mark after reshuffling 2023-10-27 01:14:25 +02:00
Eugene Sandulenko 1b99e013a7 GRAPHICS: MACGUI: Hid debug messages deeper 2023-10-27 01:11:59 +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
Eugene Sandulenko 67ab2657d8 GRAPHICS: MACGUI: Split out MacTextCanvas into a separate file 2023-10-24 02:38:17 +02:00