Commit Graph
1719 Commits
Author SHA1 Message Date
Eugene Sandulenko da9e02cebb GRAPHICS: MACGUI: Fix crash on backspace in MacTextWindow input 2017-08-01 10:42:22 +02:00
Eugene Sandulenko 81c26caaf8 GRAPHICS: MACGUI: Exposed input text from the MacTextWindow 2017-08-01 10:42:22 +02:00
Eugene Sandulenko 3e96a0909d GRAPHICS: MACGUI: Replace magic numbers with named constants 2017-08-01 10:42:22 +02:00
Eugene Sandulenko e832f1d650 GRAPHICS: MACGUI: Update cursor position as text being added to MacTextWindow 2017-08-01 10:42:22 +02:00
Eugene Sandulenko 94a0eadd30 GRAPHICS: MACGUI: Added hack for fixing cursor position in MacTextWindow 2017-08-01 10:42:22 +02:00
Eugene Sandulenko c2944fb5b8 GRAPHICS: MACGUI: Simplified cursor code is MacTextWindow 2017-08-01 10:42:22 +02:00
Eugene Sandulenko a2427fddd7 GRAPHICS: MACGUI: Initial code for cursor drawing in MacTextWindow 2017-08-01 10:42:22 +02:00
Eugene Sandulenko 62a2ac8c2b GRAPHICS: MACGUI: Added more getters to MacText 2017-08-01 10:42:22 +02:00
Eugene Sandulenko 511b21d3cf GRAPHICS: MACGUI: Added font specifying to MacTextWindow 2017-08-01 10:42:21 +02:00
Eugene Sandulenko 645ee64da0 GRAPHICS: MACGUI: Avoid double free of MacTextWindow 2017-08-01 10:42:21 +02:00
Eugene Sandulenko 73b6b12cbb GRAPHICS: MACGUI: Correctly process empty inpt strings in MacTextWindow 2017-08-01 10:42:21 +02:00
Eugene Sandulenko dbc247cc3f JANITORIAL: Code formatting 2017-08-01 10:42:21 +02:00
Eugene Sandulenko 9fe79b9e19 GRAPHICS: MACGUI: Made MacTextWindow processing keyboard input 2017-08-01 10:42:21 +02:00
Eugene Sandulenko ff8a2ade68 GRAPHICS: MACGUI: Made more MacWindow methods public 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
Eugene Sandulenko bfb757c3c0 GRAPHICS: Load Mac font heights too (still unused) 2017-08-01 10:42:21 +02:00
Eugene Sandulenko 06e1445fd1 MACGUI: Fix warning 2017-07-18 00:02:45 +02:00
Eugene Sandulenko 49c72c884a MACGUI: Fix compilation 2017-07-18 00:01:46 +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 a169c7efb3 GRAPHICS: Use MacText::appendText to render formatted text
With this we can specify font, character size and slant that each
appended text will use.
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 fe63eb7644 GRAPHICS: Introduce drawText, appendText and font in MacTextWindow 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 f2f420e15f GRAPHICS: Skeleton of MacTextWindow
Needed to add 2 helper methods to MacWindowManager to make it cleaner
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
Eugene Sandulenko 940b2a20f1 Revert "COMMON: Change way the Singleton instances are instantiated"
This reverts commit eefa72afa1.

With this patch ConfigManager is broken.
2017-07-10 21:17:41 +02:00
Thierry Crozat eefa72afa1 COMMON: Change way the Singleton instances are instantiated
This fixes tons of warnings with clang from a recent xcode version on
macOS (and possibly other systems) complaining that an instantiation
of _singleton is required but no definition is available.
2017-07-10 21:11:20 +02:00
Colin Snover 7ce2e4cf08 GRAPHICS: Allow nearest neighbor scaling of 1Bpp and 2Bpp TransparentSurfaces
This is one small step toward allowing more shared usage of
existing scaling code.
2017-07-06 19:12:36 -05:00
Vincent Pelletier 57eda6aef0 GRAPHICS: Include bytesPerPixel in toString representation 2017-05-27 09:39:08 +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
Eugene Sandulenko 319bbcfbf1 GRAPHICS: Hid noisy warning in MacFontManager 2017-03-12 16:20:00 +01:00
Paul Gilbert 1a25abbd73 GRAPHICS: Apply eriktorbjorn's fix for non-origin transBlitFrom calls 2017-02-21 20:41:35 -05: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
stevenhoefel c48273d913 GRAPHICS: Return line count of formatted MacText. 2017-02-06 12:47:41 +11: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 1a4be95aaa GRAPHICS: Try to generate font names from slant in MacFontManager 2017-02-04 16:04:36 +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