Eugene Sandulenko
9cd37b0d11
GRAPHICS: MACGUI: Improved debug output for MacText
2019-12-15 00:10:27 +01:00
Eugene Sandulenko
9a2371ddfb
GRAPHICS: MACGUI: Fixed text format parsing
2019-12-14 00:37:45 +01:00
Eugene Sandulenko
a35259dc0d
GRAPHICS: MACGUI: Implemented non-binary version of inline text formatting
2019-12-11 21:45:55 +01:00
Eugene Sandulenko
3a7a3e2009
GRAPHICS: MACGUI: Fix crash on MacText reallocation
2019-12-01 16:29:54 +01:00
Eugene Sandulenko
0bbfe624be
MACGUI: Do not recalc empty text
2019-11-24 15:57:08 +01:00
Eugene Sandulenko
694ed6e7bc
GRAPHICS: MACGUI: Added possibility to render MacText at any desired place
2019-10-20 20:09:28 +05:00
Eugene Sandulenko
2d1dc5d1c4
GRAPHICS: MACGUI: Added default font for MacText
2019-10-19 17:43:47 +02:00
Eugene Sandulenko
419cb1e7c7
GRAPHICS: MACGUI: Switched MacText to U32String internally
2019-10-18 17:20:27 +02:00
Paul Gilbert
11e33ba3fc
JANITORIAL: Removing trailing spaces after int casts
2018-08-17 20:30:20 -07:00
Andrei Prykhodko
bb995bc871
GRAPHICS: MACGUI: fixed mem leak in MacText
2018-08-05 23:07:55 +03:00
Eugene Sandulenko
4a1a7f965f
GRAPHICS: MACGUI: Do not crash when nothing was drawn yet
2017-08-28 19:17:45 +02:00
Eugene Sandulenko
f8284623c4
GRAPHICS: MACGUI: Clear whole surface when resizing
...
This removes black artifacts when previous text was narrower
2017-08-26 21:34:16 +02:00
Eugene Sandulenko
0f0dd88b61
GRAPHICS: MACGUI: Fix MacText::getTextChunk() for multiline selections
2017-08-15 19:48:16 +02:00
Eugene Sandulenko
0e2d14ac41
GRAPHICS: MACGUI: Initial code for Cutting/Paste multiline input texts
2017-08-08 11:25:55 +02:00
Eugene Sandulenko
d51a87a83b
GRAPHICS: MACGUI: Correctly expand selection beyond last line
2017-08-07 12:18:20 +02:00
Eugene Sandulenko
9d2ca34ae4
GRAPHICS: MACGUI: Enforce surface cleanup on MacText clearing
2017-08-05 23:55:44 +02:00
Eugene Sandulenko
5091968f4c
GRAPHICS: MACGUI: More work on clearing MacTextWindow content
2017-08-05 23:50:45 +02:00
Eugene Sandulenko
75491291f9
GRAPHICS: MACGUI: Made CLIP statemements more useful
2017-08-05 08:12:43 +02:00
D G Turner
81a236ee8f
GRAPHICS: MACGUI: Fix GCC Compiler Warnings.
2017-08-05 06:16:22 +01:00
Eugene Sandulenko
1241ada63a
GRAPHICS: MACGUI: Fixed bug with column detection in text selection
2017-08-04 21:54:20 +02:00
Eugene Sandulenko
c7f83cd435
GRAPHICS: MACGUI: Fix end line text selection hihglight
2017-08-04 21:54:20 +02:00
Eugene Sandulenko
9e81f4de89
GRAPHICS: MACGUI: Better selection row detection
2017-08-04 21:54:20 +02:00
Eugene Sandulenko
55a241494e
GRAPHICS: MACGUI: Improved text selection edge case behaviour
2017-08-04 21:54:20 +02:00
Eugene Sandulenko
a5fa164b8e
GRAPHICS: MACGUI: Bugfixes for selection copying in MacText
2017-08-04 21:54:20 +02:00
Eugene Sandulenko
23649e8d87
GRAPHICS: MACGUI: Initial code for copying selection to clipboard
2017-08-04 21:54:20 +02:00
Eugene Sandulenko
71aadb5645
GRAPHICS: MACGUI: Correctly calculate row in MacText::getRowCol()
2017-08-04 21:54:20 +02:00
Eugene Sandulenko
b3c8a8e129
GRAPHICS: MACGUI: Align and store MacText selection coordinates
2017-08-04 21:54:20 +02:00
Eugene Sandulenko
08293015e7
GRAPHICS: MACGUI: Implement MacText::getRowCol() method
2017-08-04 21:54:20 +02:00
Eugene Sandulenko
c25a26d11c
GRAPHICS: MACGUI: Event processing code for text selection in MacTextWindow
2017-08-04 21:54:20 +02:00
Eugene Sandulenko
df36b2d7e0
GRAPHICS: MACGUI: Clear rendered text when lines are removed in MacText
2017-08-04 21:54:19 +02:00
Eugene Sandulenko
7333a68636
GRAPHICS: MACGUI: Fix bug in MacText with adding newlines
2017-08-04 21:54:19 +02:00
Eugene Sandulenko
4e044d7bd3
GRAPHICS: MACGUI: Do not add input line to the original MacText content
...
During resize we were replaying all MacText appends, which was including
whole history of the input. Eek.
2017-08-04 21:54:19 +02:00
Eugene Sandulenko
d9e7cbaf96
GRAPHICS: MACGUI: Implement MacText resize
2017-08-04 21:54:19 +02:00
Eugene Sandulenko
8609572b87
GRAPHICS: MACGUI: Correctly set MacTextWindow internal MacText size
2017-08-04 21:54:19 +02:00
Eugene Sandulenko
50078a808c
GRAPHICS: MACGUI: Remove unused variable
2017-08-04 21:54:19 +02:00
Eugene Sandulenko
61eb58186c
GRAPHICS: MACGUI: Cleanup
2017-08-04 21:54:19 +02:00
Eugene Sandulenko
a95899c1b6
GRAPHICS: MACGUI: Fix formatting of the first added text in MacText
2017-08-04 21:54:19 +02:00
Eugene Sandulenko
e236db8c3f
GRAPHICS: MACGUI: Fixed appendText() in MacGui: formatting was not passed
2017-08-04 21:54:19 +02:00
Eugene Sandulenko
2e458671f6
GRAPHICS: MACGUI: Fix copy/paste bug in MacText
2017-08-04 21:54:19 +02:00
Eugene Sandulenko
fe8ef60e08
GRAPHICS: MACGUI: Added more debug output to MacText
2017-08-04 21:54:19 +02:00
Eugene Sandulenko
b02d9a0174
GRAPHICS: MACGUI: unk3f is not needed in MacText
2017-08-01 10:42:22 +02:00
Eugene Sandulenko
115a7407e9
GRAPHICS: MACGUI: Keep original string in MacText
2017-08-01 10:42:22 +02:00
Eugene Sandulenko
dbc247cc3f
JANITORIAL: Code formatting
2017-08-01 10:42:21 +02:00
Eugene Sandulenko
68cd5c8868
GRAPHICS: MACGUI: Added method to remove last line from MacText
2017-08-01 10:42:21 +02:00
VelocityRa
3a2ce12288
WAGE: Fix resizing and text selection bug
...
Revise/Simplify old optional text rendering
Set things up a bit for selected text rendering
Add MacTextWindow::clearText and MacTextWindow::setSelection
Add MacTextWindow::appendText variant that accepts a MacFont
2017-07-17 23:45:22 +02:00
VelocityRa
2b06c02d7d
GRAPHICS: Add MacText::appendText() variants that accept text format args
...
Made 1 helper method and 1 function to reduce duplication size as much
as possible and still keep them useful for other purposes.
2017-07-17 23:45:22 +02:00
VelocityRa
b127beb03c
GRAPHICS: Fix bug in MacText::draw() on calculating bounding rect size
...
Change is _surface->w to _surface->h in the fourth arg to Common::Rect
2017-07-17 23:45:22 +02:00
VelocityRa
b28a4a8c3d
GRAPHICS: Fix MacText::appendText by resizing _textLines
...
Also fix an off-by-one error
2017-07-17 23:45:22 +02:00
Tobia Tesan
6a741a88c9
GRAPHICS: Pass interlinear as constructor argument to MacText
2017-05-02 21:01:23 +01:00
Tobia Tesan
ed2f09b13f
GRAPHICS: Delete MacFont in MacText
2017-04-30 09:48:08 +02:00