Commit Graph
3567 Commits
Author SHA1 Message Date
Eugene Sandulenko 7eb9bcf705 GRAPHICS: Fix MSVC warning 2021-07-01 01:35:58 +02:00
ysj1173886760 1945e3ec5c GRAPHICS: MACGUI: realloc surface after changing dims 2021-06-30 16:29:00 +02:00
ysj1173886760 bcd33eeba3 DIRECTOR: fix rendering text to suit for different style text 2021-06-30 16:29:00 +02:00
ysj1173886760 d0317fa1bb DIRECTOR: use text style to determine whether text should fix dims 2021-06-30 16:29:00 +02:00
ysj1173886760 202f6ce7e5 GRAPHICS: MACGUI: move set fixed dims to ctor for mactext 2021-06-30 16:29:00 +02:00
ysj1173886760 c759e27fe7 GRAPHICS: MACGUI: introduce _fixedDims to mactext, which represent for whether mactext should auto expanding. 2021-06-30 16:29:00 +02:00
ysj1173886760 787454f908 GRAPHICS: MACGUI: support partial color setting in mactext 2021-06-30 16:29:00 +02:00
ysj1173886760 ba858522eb GRAPHICS: MACGUI: add basic color changing support for mactext 2021-06-30 16:29:00 +02: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
Orgad Shaneh 968e52ee98 GRAPHICS: Fix crash when resizing the window to low width 2021-06-27 09:05:17 +03:00
ysj1173886760 258c8447a2 GRAPHICS: MACGUI: modify the behaviour of selection. we will select whole area when we select whole text. 2021-06-26 16:08:20 +02:00
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