Commit Graph
3567 Commits
Author SHA1 Message Date
ysj1173886760 d00c5d1c36 DIRECTOR: fix _interLinear in mactext.
looks like it's the max text height, instead of the height of intervals of line.
2021-08-13 20:27:18 +08:00
ysj1173886760 e5af48a2ac GRAPHICS: MACGUI: fix getRowCol.
deal with out of bound error.
2021-08-12 17:03:09 +08:00
ysj1173886760 c4f7848084 GRAPHICS: MACGUI: fix createSubMenuFromString. 2021-08-09 16:51:25 +08:00
Max Horn c9c13f49d8 GRAPHICS: fix global constructor warnings
Arguably it's better to use a hard code constant anyway, as the result
of sqrt(2) can vary between platforms (not that it is likely to matter
in practice ;-) ).
2021-08-07 10:46:14 +02:00
Max Horn b7e6d61669 JANITORIAL: Fix compiler warnings about unused code 2021-08-07 10:46:14 +02:00
djsrv 40c8ab4724 GRAPHICS: MACGUI: Fix registering font to preferred ID 2021-08-06 08:56:32 -04:00
djsrv 1e61684570 GRAPHICS: MACGUI: Add replaceCustomCursor 2021-08-06 01:11:39 -04:00
djsrv 93f585c524 GRAPHICS: MACGUI: Clean up cursor management
Cursor types are now stored in a stack. Pushes and pops to the cursor
stack, cursor palette stack, and cursor type stack are now fully
synchronized.
2021-08-06 01:11:30 -04:00
Thierry Crozat 3203346dfb GRAPHICS: Do not use ellipsis by default when drawing text
This makes the default for drawString consistent with the default
for getBoundingBox.

This should also fix ellipsis being used by mistake in some games
(this was reported in Myst Masterpiece Edition for the menu screen).
2021-08-01 17:22:13 +02:00
Thierry Crozat bb98ce92f2 MACGUI: Explicitly use ellipsis to draw text when needed
This is the default, so this commit does not change the behaviour.
But this will allow to change the default at a later stage.
2021-08-01 17:22:13 +02:00
ysj1173886760 9148f6dd20 GRAPHICS: MACGUI: fix the behaviour of drawing selection 2021-07-31 18:23:47 +08:00
ysj1173886760 b60bcbfef7 GRAPHICS: MACGUI: implement getMouseLine 2021-07-31 15:52:41 +08:00
ysj1173886760 9ba14cf696 GRAPHICS: MACGUI: implement getMouseWord 2021-07-31 15:46:50 +08:00
djsrv 114b4d5e5a GRAPHICS: MACGUI: Fix segfault 2021-07-30 17:04:36 -04:00
djsrv 54b84aaedd GRAPHICS: MACGUI: Fix desktop memory leak 2021-07-30 16:43:57 -04:00
djsrv ad780d761c GRAPHICS: MACGUI: Handle TTF fonts with slant 2021-07-30 16:43:57 -04:00
djsrv 29197c191c GRAPHICS: MACGUI: Fix font memory leaks 2021-07-30 16:43:57 -04:00
ysj1173886760 87cd99126a GRAPHICS: MACGUI: implement getMouseWord 2021-07-30 16:38:15 +08:00
ysj1173886760 b1f5de3501 GRAPHICS: MACGUI: implement mouseChar 2021-07-30 16:25:51 +08:00
ysj1173886760 99447ca832 GRAPHICS: MACGUI: implement getting member of menuItem 2021-07-30 15:43:00 +08:00
ysj1173886760 66fb967d56 GRAPHICS: MACGUI: support setting action id for macmenuItem 2021-07-29 19:48:42 +08:00
ysj1173886760 5ae035f4b5 GRAPHICS: MACGUI: implement overload version for the functions for setting menu attributes 2021-07-29 12:45:16 +08:00
ysj1173886760 7673cbcc86 GRAPHICS: MACGUI: implement setMenuItemName 2021-07-29 12:28:05 +08:00
ysj1173886760 948604d79d GRAPHICS: MACGUI: text length should not bigger than maxWidth - 1 2021-07-29 12:04:20 +08:00
ysj1173886760 53fd14b283 GRAPHICS: MACGUI: add functions for setting member checkMark and Enable of menuItem 2021-07-29 11:40:18 +08:00
ysj1173886760 c57c7b11b2 DIRECTOR: skip setting shortcut key when we only read / 2021-07-29 10:52:45 +08:00
ysj1173886760 36abd91264 GRAPHICS: MACGUI: introduce checkBoxAccess to determines what happens when user clicks the checkbox or radio button 2021-07-29 10:52:45 +08:00
ysj1173886760 a8d7767b36 DIRECTOR: don't highlight buttons in list button style when we are not clicking button initially. 2021-07-28 16:20:48 +08:00
ysj1173886760 17b1915c72 GRAPHICS: MACGUI: introducing hilitingWidget to macwidget for implementing list button style 2021-07-28 16:13:37 +08:00
ysj1173886760 b16b2c4b6b GRAPHICS: MACGUI: amend the behaviour for list style button 2021-07-28 15:50:49 +08:00
Le Philousophe 585b112d6b GRAPHICS: Implement horizontal triangles
Simplify drawTriangle in the same time and fix a bad copy paste when
drawing outline with w == h
2021-07-27 20:38:45 +02:00
ysj1173886760 a2d453a8f9 GRAPHICS: MACGUI: don't apply the kerning offset for the generated font
because we have already applied it when we are generating the font.
2021-07-26 20:55:49 +08:00
ysj1173886760 e4762aef5e DIRECTOR: don't scroll for auto expand text. 2021-07-26 17:10:10 +08:00
ysj1173886760 bd6f680648 GRAPHICS: MACGUI: fix rendering text.
previously, it will blink due to i was using transBlitFrom to blit text to composed surface.
for now, i've fixed the render logic, this should behave correct and more faster than ever.
2021-07-26 14:31:57 +08:00
ysj1173886760 05041e5001 GRAPHICS: MACGUI: introduce builtin pattern to wm. use builtin pattern to draw disabled menu items. 2021-07-24 18:34:56 +08:00
ysj1173886760 091e49fb66 GRAPHICS: MACGUI: implement checked item for macmenu 2021-07-24 16:38:57 +08:00
ysj1173886760 70e2ca433c GRAPHICS: MACGUI: fix rendering text shadow with non-black text. 2021-07-24 15:10:13 +08:00
ysj1173886760 238971bc46 GRAPHICS: MACGUI: initialize slant of macFontfont. 2021-07-23 18:16:22 +08:00
ysj1173886760 7e2f3edc61 GRAPHICS: MACGUI: initialize bitImage to 0. 2021-07-23 17:06:38 +08:00
ysj1173886760 dc8418b547 GRAPHICS: MACGUI: implement shadow font. 2021-07-23 17:06:38 +08:00
ysj1173886760 1d7e82bf3e GRAPHICS: MACGUI: amend makeOutline 2021-07-23 17:06:38 +08:00
ysj1173886760 cae8166101 GRAPHICS: MACGUI: organize the code for extension. 2021-07-23 17:06:38 +08:00
ysj1173886760 822ca12ab2 GRAPHICS: MACGUI: draw the underLine in kerning area when we are dealing with underLine font. 2021-07-23 17:06:38 +08:00
ysj1173886760 0aa7518c5b GRAPHICS: MACGUI: set the kerning offset to 0 when dealing with underLined space. 2021-07-23 17:06:38 +08:00
ysj1173886760 6752b923b9 GRAPHICS: MACGUI: amend makeOutline in macFont. 2021-07-23 17:06:38 +08:00
ysj1173886760 e434198924 GRAPHICS: MACGUI: implement underline font. 2021-07-23 17:06:38 +08:00
ysj1173886760 0f6c0f0904 GRAPHICS: MACGUI: clean the formats in mactext 2021-07-23 17:06:38 +08:00
ysj1173886760 3d0b7d5130 GRAPHICS: MACGUI: modify the parameter of scaleFont in macFont 2021-07-23 17:06:38 +08:00
ysj1173886760 4dd8e71fb9 GRAPHICS: MACGUI: fix outline style font. 2021-07-22 21:42:19 +08:00
ysj1173886760 e02911f283 GRAPHICS: MACGUI: add 1 to the width of outline font. 2021-07-22 21:42:19 +08:00