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
Tobia Tesan
af664fe757
GRAPHICS: Use MacFont in lieu of Graphics::Font in MacText
2017-04-30 09:48:08 +02:00
stevenhoefel
7d044c570c
GRAPHICS: Recalculate text area sizing if interLinear is changed.
2017-02-07 16:26:59 +11:00
Eugene Sandulenko
6ea020d5f1
GRAPHICS: Cleanup MacText code
2017-02-06 08:41:09 +01:00
Eugene Sandulenko
bbb3c5ae9a
GRAPHICS: Removing Director-specific hack in text width calculation
2017-02-04 16:29:24 +01:00
Eugene Sandulenko
906d94a742
GRAPHICS: Enforce font recomputation in MacText
2017-02-04 16:05:01 +01:00
Eugene Sandulenko
91d85feace
GRAPHICS: Correctly process empty lines in MacText
2017-02-04 15:31:44 +01:00
Eugene Sandulenko
04a2a8ba27
GRAPHICS: Hid noisy debug messages in MacText
2017-02-04 15:17:13 +01:00
Eugene Sandulenko
74696f6c92
GRAPHICS: Fix MacText rendering when 3 fonts meet on one line
2017-02-03 18:32:44 +01:00
Eugene Sandulenko
c832865875
GRAPHICS: Fix MacText wrapping when formatting starts in the middle of a line
2017-02-03 10:05:36 +01:00
Eugene Sandulenko
7b7a0fa3ad
GRAPHICS: Fix surface reallocation in MacText
2017-02-02 23:53:30 +01:00
Eugene Sandulenko
165f5f1784
GRAPHICS: Fix MacText wrapping. Kudos to wjp
2017-02-02 23:41:58 +01:00
Eugene Sandulenko
3e47d7abf3
GRAPHICS: Fix MacText splitter, so less empty font chunks are generated
2017-02-02 20:39:34 +01:00
Eugene Sandulenko
c30df01130
GRAPHICS: More optimization for empty strings
2017-02-02 10:11:07 +01:00
Eugene Sandulenko
255c76b3ac
GRAPHICS: Optimize for empty substrings in MacText
2017-02-02 09:18:08 +01:00
Eugene Sandulenko
d39404c8e8
GRAPHICS: Fix rendering of MacText with font change in the middle of the string
2017-02-01 19:06:36 +01:00
Eugene Sandulenko
6e3e8911c1
GRAPHICS: MacText fixes for in-the middle style change splitting
2017-02-01 18:58:35 +01:00
Eugene Sandulenko
6fbb82f85b
GRAPHICS: Add more debug output to MacText
2017-02-01 18:36:25 +01:00
D G Turner
32667eeaa9
GRAPHICS: Fix GCC Compiler Warnings.
2017-02-01 01:17:53 +00:00
Eugene Sandulenko
cc59811205
DIRECTOR: Adjust text wrapping by one pixel
2017-02-01 01:07:14 +01:00
Eugene Sandulenko
d4e4a20cc5
GRAPHICS: Implement rendering of rich MacText
2017-01-31 23:14:37 +01:00