Commit graph

35 commits

Author SHA1 Message Date
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Martin Gerhardy
37de1b3146 MACGUI: const for some methods 2021-09-19 15:21:56 +02:00
Eugene Sandulenko
c60009da68
GRAPHICS: MACGUI: Initialized class variables 2021-05-01 01:49:48 +02:00
ysj1173886760
fc702ea9fe GRAPHICS: MACGUI: re-organize the code for drawing scrollbar for macwindow 2021-04-25 02:24:15 +02:00
ysj1173886760
b993ab021d GRAPHICS: MACGUI: fix the algorithm when we calc the coordinate of scrollbar, modify the offsets 2021-04-25 02:24:15 +02:00
ysj1173886760
90b2c02f27 GRAPHICS: MACGUI: init the scrollSize and scrollPos at constructor 2021-04-25 02:24:15 +02:00
ysj1173886760
855583e2e4 GRAPHICS: MACGUI: add win95 mode for scrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760
3b47e56155 GRAPHICS: MACGUI: clean the codes 2021-04-12 14:04:25 +02:00
ysj1173886760
b8f8fdbf19 GRAPHICS: MACGUI: make title color depend on the border color 2021-04-12 14:04:25 +02:00
ysj1173886760
3b53a4f2f7 GRAPHICS: MACGUI: move titlePos into BorderOffsets 2021-04-12 14:04:25 +02:00
ysj1173886760
7f47b9f6c0 GRAPHICS: MACGUI: move border stuff into macwindowborder 2021-04-12 14:04:25 +02:00
ysj1173886760
c2353d3797 GRAPHICS: MACGUI: use lazy load to load built-in border types, add scrollbar flag to indicate whether the window has scroll bar 2021-04-12 14:04:25 +02:00
ysj1173886760
aeacf0d4d2 GRAPHICS: MACGUI: modify the position where it draws the title, currently, it will draw title at the center of title box 2021-04-12 14:04:25 +02:00
ysj1173886760
a0964d690c GRAPHICS: MACGUI: Add border flags to the builtin border types, fix the remaining part of macgui which are not adapt to border flags. 2021-04-12 14:04:25 +02:00
ysj1173886760
6d7e794ed3 GRAPHICS: MACGUI: Add flag to indicate the border type, move drawTitle and drawScrollBar into macwindowborder 2021-04-12 14:04:25 +02:00
ysj1173886760
307147c565 GRAPHICS: MACGUI: use titlePos to calc titleIndex, change the titleWidth in 9-patch when title is changed 2021-04-12 14:04:25 +02:00
ysj1173886760
8894317e89 GRAPHICS: MACGUI: add titleIndex and titleWidth to macborder in order suit to 9-patch 2021-04-12 14:04:25 +02: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
f5d1858da9 GRAPHICS: MACGUI: Allow border to be changed 2020-08-06 14:29:24 -04:00
djsrv
c29ccaa0bb GRAPHICS: MACGUI: Draw title on ninepatch borders 2020-08-05 19:20:14 -04:00
djsrv
313f4bda00 GRAPHICS: MACGUI: Fix MacWindowBorder::hasOffsets 2020-07-31 16:38:37 -04:00
djsrv
d4c825b089 GRAPHICS: Allow using Mac WM best color in 9patch 2020-07-31 16:38:37 -04:00
Eugene Sandulenko
3fbcc67766 GRAPHICS: MACGUI: Load border padding directly from the 9-patch 2019-09-29 23:26:05 +02:00
Eugene Sandulenko
ffc4b685e3 GRAPHICS: MACGUI: Fixed stack smashing 2019-09-29 17:40:33 +02:00
Eugene Sandulenko
ab14c41038 GRAPHICS: MACGUI: Added safaguards to border blitting 2019-09-29 17:28:50 +02:00
Eugene Sandulenko
fab199d37e JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
Borja Lorente
5bba089724 GRAPHICS: Fix big leak when blitting macgui borders 2016-08-25 13:26:02 +02:00
Borja Lorente
9444a1864b GRAPHICS: Fix leak in macgui border loading 2016-08-25 13:26:02 +02:00
Borja Lorente
6d8b6ad4f8 GRAPHICS: Fix include path in macwindowborder 2016-08-02 08:33:50 +02:00
Borja Lorente
f92873ae37 GRAPHICS: Add missing file header 2016-08-02 08:33:50 +02:00
Borja Lorente
bc798d9ff4 GRAPHICS: Add custom border measures 2016-08-02 08:33:43 +02:00
Borja Lorente
3b1ba50c88 GRAPHICS: First approximation to custom border offsets 2016-07-31 14:47:19 +02:00
Borja Lorente
f642ad1cae GRAPHICS: Refactor MacWindow to accept MacWindowBorder 2016-07-31 14:45:37 +02:00
Borja Lorente
a2955b1025 GRAPHICS: Add active/inactive borders to MacWindowBorders 2016-07-31 14:45:36 +02:00
Borja Lorente
4ab02530ae GRAPHICS: Add MacWindowBorder to abstract borders 2016-07-31 14:45:36 +02:00