Paul Gilbert
baccbedf50
GRAPHICS: Changed surface classes sizes from uint16 to int16
2021-07-04 18:24:27 -07:00
Paul Gilbert
1c3e7fb4e9
COMMON: Change Rect and Point to have int32 fields
2021-07-04 18:24:26 -07:00
ysj1173886760
6db3b93050
GRAPHICS: MACGUI: add an overload version for findBestColor
2021-06-30 16:29:00 +02:00
ysj1173886760
b512f33263
GRAPHICS: MACGUI: pass an event of lbutton_up to those widgets should clear widgets correctly.
2021-06-30 16:29:00 +02:00
ysj1173886760
bb26ca4d46
GRAPHICS: MACGUI: reset variable for handling events for macwidgets when wm won't handle events correctly
2021-06-30 16:29:00 +02:00
ysj1173886760
93421af649
GRAPHICS: MACGUI: clean the code and write comments for readability
2021-06-20 14:33:53 +02:00
ysj1173886760
931817d907
GRAPHICS: MACGUI: restore the cursorType when we pop the cursor, currently we use kMacCursorArrow for the default one
2021-06-20 14:33:53 +02:00
ysj1173886760
112765eb6c
GRAPHICS: MACGUI: add _inEditableArea to WM, to distinguish whether the cursor type is set by director or ourself
2021-06-20 14:33:53 +02:00
ysj1173886760
c8f603262b
GRAPHICS: MACGUI: fix incorrect memory accessing
2021-06-20 14:33:53 +02:00
ysj1173886760
d31331eb9a
DIRECTOR: modify the behaviour of resizeScreen to avoid memory leaks. Introduce _surface to director which will provide consistency for those engines which uses macgui.
2021-06-20 14:33:53 +02:00
ysj1173886760
4928f35aac
GRAPHICS: MACGUI: create function "resizeScreen" to creating and resizing screen for WM
2021-06-20 14:33:53 +02:00
ysj1173886760
c9091e8a46
GRAPHICS: MACGUI: add the check when we are disabling the screen copy
2021-06-20 14:33:53 +02:00
ysj1173886760
73916d9aca
GRAPHICS: MACGUI: remove a case which has already been checked before in macWM
2021-06-10 13:58:41 +02:00
ysj1173886760
777a8c1d17
GRAPHICS: MACGUI: modify the logic when we are calculating PureTextSize in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
12232c992a
GRAPHICS: MACGUI: fix calculating the pure text size in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
bdf81ad565
GRAPHICS: MACGUI: fix the copy/paste operations when we have multi-paragraph selection in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
4419ae9a0b
GRAPHICS: MACGUI: add default format before we are using the text from global clipboard
2021-06-03 13:19:10 +02:00
ysj1173886760
d4abe958bd
GRAPHICS: MACGUI: clean code for WM clipboard operations
2021-06-03 13:19:10 +02:00
ysj1173886760
c88b6e2e04
GRAPHICS: MACGUI: move WM clipboard operations from mactext to macwindowmanager
2021-06-03 13:19:10 +02:00
ysj1173886760
60d9b79c0f
GRAPHICS: MACGUI: add intersection check with macmenu and macwindow
2021-05-21 10:51:07 +02:00
Eugene Sandulenko
6e17562492
GUI: MACGUI: Make MacTextWindow working with plain fonts
2021-05-02 01:03:02 +02:00
Eugene Sandulenko
cc0cdbbd22
GRAPHICS: MACGUI: Plug memory leak
2021-05-01 01:49:46 +02:00
ysj1173886760
803cd6d715
GRAPHICS: MACGUI: bring kWMModeNoDesktop flag useful again
2021-04-25 02:24:15 +02:00
ysj1173886760
9298eba78d
GRAPHICS: MACGUI: remove the check that is not needed
2021-04-12 14:04:25 +02:00
ysj1173886760
1afc246a69
GRAPHICS: MACGUI: Added the callback function for drawing invert pixel for default palette, which is used to draw the scroll bar
2021-04-01 16:08:56 +02:00
ysj1173886760
43e95f3a48
GRAPHICS: MACGUI: set palette in macwindowmanager line 41 as default a palette of MacWindowManager
2021-04-01 16:08:56 +02:00
ysj1173886760
3f4e072632
GRAPHICS: MACGUI: Added flag to load ScummVM wallpaper optionally
2021-03-27 13:05:31 +01:00
Eugene Sandulenko
f8ac24d27a
GRAPHICS: MACGUI: Better handling for setActiveWidget
...
This fixes cursor in editable text widgets.
2021-03-19 20:13:57 +01:00
Nathanael Gentry
d2a1102423
GRAPHICS: MACGUI: Fix screen copying with direct draw
2020-08-19 16:59:18 -04:00
Eugene Sandulenko
367dd5ff66
GRAPHICS: MACGUI: More fixed for 32bpp mode
2020-08-16 23:08:33 +02:00
Eugene Sandulenko
f05d2f17c2
GRAPHICS: MACGUI: Made MacDrawPixPtr a global typedef
2020-08-16 00:59:05 +02:00
Eugene Sandulenko
695e8349fe
GRAPHICS: MACGUI: BE-safe color creation
2020-08-16 00:59:05 +02:00
Eugene Sandulenko
e604c97607
GRAPHICS: MACGUI: Made MacDrawPixel bpp-aware
2020-08-15 16:09:20 +02:00
Eugene Sandulenko
56fddcb965
GRAPHICS: MACGUI: Tidy up code
2020-08-15 14:50:27 +02:00
Eugene Sandulenko
6d72ebd1e2
GRAPHICS: MACGUI: Made MacButtons and desktop render in 32bpp
2020-08-15 14:50:26 +02:00
Eugene Sandulenko
29533d9c5e
GRAPHICS: MACGUI: Fix typo in findBestColor
2020-08-15 14:50:26 +02:00
Eugene Sandulenko
659e3c72b8
GRAPHICS: MACGUI: Further work on 32bpp blitting
2020-08-14 23:54:16 +02:00
Nathanael Gentry
b4c6ab24b0
GRAPHICS: MACGUI: Restore window border transparency
2020-08-13 21:24:52 -04:00
Eugene Sandulenko
d61eeb9880
GRAPHICS: MACGUI: Added 32bpp mode form MacWindowManager
2020-08-14 01:10:32 +02:00
Nathanael Gentry
8b7f9d4ab2
GRAPHICS: MACGUI: Handle direct draw window offsets
2020-08-12 16:34:24 -04:00
Nathanael Gentry
3a69512fe1
GRAPHICS: MACGUI: Fix menu direct rendering
2020-08-12 16:34:24 -04:00
Nathanael Gentry
a639ae4002
GRAPHICS: MACGUI: Add WM direct copy mode
...
This does not keep the current screen state cached in a surface, but re-creates
the screen from its various components each time something changes. This avoids
an intermediate blitting.
The mode is enabled just by not providing a surface to the WM, and instead
providing a width and height.
2020-08-12 02:34:45 -04:00
Nathanael Gentry
59dd1716b1
GRAPHICS: MACGUI: Put pause token on heap
2020-08-12 02:34:24 -04:00
djsrv
a9346eea42
GRAPHICS: MACGUI: Improve grays naming
2020-08-07 18:55:17 -04:00
djsrv
61cfbdc469
GRAPHICS: MACGUI: Add more colors as properties
...
Finding the closets color in the current palette is necessary for
transparency in bitmap borders to work.
2020-08-07 16:47:19 -04:00
djsrv
570e33cc8a
GRAPHICS: MACGUI: Draw bitmap desktop background
2020-08-06 18:32:08 -04:00
djsrv
74f0434d42
GRAPHICS: MACGUI: Add _colorOffWhite
2020-08-05 19:20:14 -04:00
Nathanael Gentry
6b2ed3c8ca
GRAPHICS: MACGUI: Properly reset cursor visibility
2020-08-04 18:33:09 -04:00
djsrv
6189a36d12
GRAPHICS: MACGUI: Add border types
2020-07-31 16:38:37 -04:00
Scott Percival
4bfffc43a7
DIRECTOR: Move widgets from cast members to channels ( #2372 )
...
This change is required to support copies of the same cast member running in different channels.
* DIRECTOR: Move widget ownership from cast member to channel
* DIRECTOR: Cache cast dimensions from createWidget
* DIRECTOR: Add null checks for createWidget
* GRAPHICS: MACGUI: Clear active/hover WM references if the widget is destroyed
* DIRECTOR: LINGO: Re-add null check for kTheEditableText
* DIRECTOR: Avoid destroying widgets if the channel isn't dirty
* DIRECTOR: Fix dirty test
* DIRECTOR: Fix text field writeback
* DIRECTOR: Fix null cast check
* DIRECTOR: Add bbox as argument to createWidget
* DIRECTOR: Add setCast method to Channel
* DIRECTOR: Fix use-after-free in Channel::getMask
* DIRECTOR: Fix bounding box for Button sprites
* DIRECTOR: Cache widget dimensions in cast member
* DIRECTOR: Remove widget from channel if nextSprite is empty
* GRAPHICS: MACGUI: Fix MacText::splitString for empty string case
* DIRECTOR: Add null checks for movie and score in processEvents
2020-07-26 04:32:29 +00:00