Martin Gerhardy
37de1b3146
MACGUI: const for some methods
2021-09-19 15:21:56 +02:00
Martin Gerhardy
1287dce313
MACGUI: whitespace issues
2021-09-19 15:21:56 +02:00
DivyamAhuja
04a2a1f87c
MACGUI: Fix code formatting according to coding conventions
2021-09-19 15:21:56 +02:00
DivyamAhuja
bf46669cf8
MACGUI: Add methods to find top window at at a given point
2021-09-19 15:21:56 +02:00
Paweł Kołodziejski
de35138f3e
GRAPHICS: Use OpenGL with shaders as default
2021-09-06 22:12:19 +02:00
ysj1173886760
83615f0d86
GRAPHICS: MACGUI: fix text display issue in mactextwindow.
2021-09-06 20:58:53 +08:00
Eugene Sandulenko
797ca3568d
JANITORIAL: Fix code formatting
2021-08-20 21:17:19 +02:00
Christian Kündig
a7196e347e
OPENGL EMSCRIPTEN: Add ifndef go WebGL constants not defined by emscripten
2021-08-20 21:13:49 +02:00
Christian Kündig
8af8ac2e08
OPENGL EMSCRIPTEN: clean up ifdefs, fix opengl in main menu, remove 10ms delay in GRIM main loop
2021-08-20 21:13:49 +02:00
Christian Kündig
501c7ba7aa
DISTS EMSCRIPTEN: set correct datadir (fixed issue with shader loading)
2021-08-20 21:13:49 +02:00
Christian Kündig
3a323d6899
OPENGL: Replace ifdef for runtime check of GL_VERSION
2021-08-20 21:13:49 +02:00
Christian Kündig
b7a2e22b0a
DISTS: New Emscripten/WebAssembly dists target
...
This is an initial version of the emscripten build/dist target.
Many things are still missing, see dists/emscripten/README.md for
a detailed summary of what this provides and still misses
2021-08-20 21:13:49 +02:00
ysj1173886760
69cb4dd7a9
GRAPHICS: MACGUI: fix rendering text.
2021-08-18 21:06:41 +08:00
ysj1173886760
4133592992
GRAPHICS: MACGUI: add cache for inverted color.
2021-08-16 16:58:48 +08:00
ysj1173886760
50bfc4e521
GRAPHICS: MACGUI: implement global color inverter.
2021-08-16 16:54:00 +08:00
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