Commit Graph

3154 Commits

Author SHA1 Message Date
ysj1173886760
76e0494f27 GRAPHICS: MACGUI: clean the code 2021-06-26 16:08:20 +02:00
ysj1173886760
b442d634b4 GRAPHICS: MACGUI: fix drawing selection when we have borders in mactext 2021-06-26 16:08:20 +02:00
ysj1173886760
576ce1176e GRAPHICS: MACGUI: fix heap overflow when drawing selection in mactext 2021-06-26 16:08:20 +02:00
ysj1173886760
46f8b7df75 GRAPHICS: MACGUI: amend drawing selection in mactext 2021-06-26 16:08:20 +02:00
ysj1173886760
868f58b3c2 GRAPHICS: MACGUI: update selection after setting text in mactext 2021-06-26 16:08:20 +02:00
ysj1173886760
832455d812 GRAPHICS: MACGUI: eliminate offset in macbutton. amend the behaviour of setEditable in mactext 2021-06-26 16:08:20 +02:00
ysj1173886760
325481b38e GRAPHICS: MACGUI: amend the behaviour when we destruct mactext and setting the selRange 2021-06-26 16:08:20 +02:00
ysj1173886760
78d77319e7 GRAPHICS: MACGUI: eliminate vertical 1 offset in mac 2021-06-26 16:08:20 +02:00
ysj1173886760
9d63692348 GRAPHICS: MACGUI: eliminate offsets in mactext 2021-06-26 16:08:20 +02:00
ysj1173886760
39fc525bf0 DIRECTOR: modify and organize the logic of mactext and macbutton.
eliminated a lot of magic offsets.
reaching nearly 100% reappearance.
2021-06-26 16:08:20 +02:00
ysj1173886760
158406487a GRAPHICS: MACGUI: re-organize the logic of calculating offsets of mactext and macbutton. 2021-06-26 16:08:20 +02:00
Fiodar Stryzhniou
894f4916f5 GRAPHICS: Fix warnings for header search failure.
WARNING: Can't find following headers in User or System Include Paths "opinfo.h"
2021-06-26 08:46:07 +03:00
Cameron Cawley
359109df10 GRAPHICS: Add optimized versions of scaleBlitBilinear and rotoscaleBlitLinear 2021-06-24 11:55:54 +02:00
Cameron Cawley
82a85494cd GRAPHICS: Integrate Graphics::ColorMasks with Graphics::PixelFormat 2021-06-24 11:55:54 +02:00
Cameron Cawley
757a819da9 GRIM: Remove unneeded use of Graphics::createPixelFormat 2021-06-24 11:55:54 +02:00
Cameron Cawley
c2ae54306f BASE: Update scaler settings from old config files 2021-06-23 21:29:53 +02:00
Cameron Cawley
da5d773924 BACKENDS: Add getDefaultScaler and getDefaultScaleFactor to OSystem 2021-06-23 21:29:53 +02:00
Cameron Cawley
7ed5984e2f SDL: Add some validation to setScaler() 2021-06-23 21:29:53 +02:00
ysj1173886760
111bd187bc GRAPHICS: MACGUI: use _active to replace _invertOuter in macbutton 2021-06-20 14:33:53 +02:00
ysj1173886760
93421af649 GRAPHICS: MACGUI: clean the code and write comments for readability 2021-06-20 14:33:53 +02:00
ysj1173886760
fd8483f7cc GRAPHICS: MACGUI: fix drawing the mactext,
currently we have some problems when dealing with the alignments, so i changed to this one.
It's may get a little bit slow, but we may optimize it later
2021-06-20 14:33:53 +02:00
ysj1173886760
343597bd43 GRAPHICS: MACGUI: add setText for mactext 2021-06-20 14:33:53 +02:00
ysj1173886760
cae7c025e5 GRAPHICS: MACGUI: use ascent to determine the vertical offset when rendering mactext 2021-06-20 14:33:53 +02:00
ysj1173886760
36be209490 GRAPHICS: MACGUI: modify macbutton to fit new logic of mactext 2021-06-20 14:33:53 +02:00
ysj1173886760
3817c90148 GRAPHICS: MACGUI: deal with plain bytes specially when we calculating the string width. 2021-06-20 14:33:53 +02:00
ysj1173886760
72162c41b4 GRAPHICS: MACGUI: introduce _plainByteMode to mactext for working with plain bytes. introduce _encodeType to mactext for recording encoding type 2021-06-20 14:33:53 +02:00
ysj1173886760
3098ff11b4 GRAPHICS: MACGUI: parse slant directly from name when we didn't get any slants. 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
3517801f05 GRAPHICS: MACGUI: introduce different checkBoxType to macbutton 2021-06-20 14:33:53 +02:00
ysj1173886760
c9c3428ed6 DIRECTOR: use getDrawPixel instead of getDrawInvertPixel to invert button 2021-06-20 14:33:53 +02:00
ysj1173886760
3644f25946 DIRECTOR: fix button hilite 2021-06-20 14:33:53 +02:00
ysj1173886760
29cf9f1454 GRAPHICS: MACGUI: fix macbutton to suit for new mactext code. 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
Le Philousophe
087eb6005c GRAPHICS: Fix triangle rendering with some aspect ratios
The test to detect we cross an integer doesn't take into account 0.5
steps
When w = 9 and h = 7, you get dx = 4, dx = 5 and gradient = 0.5
In this case you never get interx + gradient > ipart(interx) + 1 when
interx is an integer.
2021-06-20 12:30:20 +02:00
Le Philousophe
66c78dc25a GRAPHICS: Ensure we still have space to draw the shadow
Else we get ptr_tl and ptr_tr reversed which causes bugs when filling
pixels
2021-06-20 11:48:19 +02:00
Martin Gerhardy
28b1a020d3 GRAPHICS: fixed formatting 2021-06-19 14:34:52 +02:00
ysj1173886760
d30e009eff GRAPHICS: MACGUI: fix regression of scrolling cursor in mactext 2021-06-13 00:41:26 +02:00
ysj1173886760
ce11b8efb9 GRAPHICS: MACGUI: small fix for getRowCol in mactext to suit for new offset system 2021-06-13 00:41:26 +02:00
ysj1173886760
e18b26d69e GRAPHICS: MACGUI: clean most of the offset in mactext 2021-06-13 00:41:26 +02:00
ysj1173886760
e575393e52 GRAPHICS: MACGUI: fix the cursor position calculating in mactext 2021-06-13 00:41:26 +02:00
djsrv
7baac7da4d GRAPHICS: MACGUI: Fix out of bounds array access 2021-06-10 10:58:27 -04:00
djsrv
8ac995cf8a GRAPHICS: MACGUI: Allow selection to be drawn on inactive text
Hilite can select text on an inactive text field
2021-06-10 10:57:19 -04: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
86e21663d5 GRAPHICS: MACGUI: fix setSelection offset in mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
34972626d4 GRAPHICS: MACGUI: remove the selection after we set maxWidth in mactext 2021-06-10 13:58:41 +02:00
ysj1173886760
4c3630f648 GRAPHICS: MACGUI: undraw the cursor when we are selecting in mactext 2021-06-10 13:58:41 +02:00