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
83341beddd
GRAPHICS: MACGUI: modify the way that setBorderType set the border, currently, it will set all borders which is the subset of flag
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
858624c0c9
GRAPHICS: MACGUI: fix the bug of the border flag is not correctly initialized
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
9298eba78d
GRAPHICS: MACGUI: remove the check that is not needed
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
ysj1173886760
179654939e
GRAPHICS: add title to 9-patch image
2021-04-12 14:04:25 +02:00
Eugene Sandulenko
382d4a6cd7
GRAPHICS: GUI: Do not use transparency when restoring background
2021-04-11 23:47:24 +02:00
Eugene Sandulenko
97547267e1
GRAPHICS: Optimize 1-bit case in PixelFormat
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
d3f5d34b62
GRAPHICS: Unify VectorRenderer blitting routines
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
dbf192fd13
GRAPHICS: Simplify VectorRenderer blitting routines
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
2839715a45
GUI: Remove TransparentSurface remnants aka alphabitmaps from themes
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
bd083c7fa7
GUI: Switch GUI to ManagedSurface
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
6217cf8a37
GRAPHICS: Added ManagedSurface constructor from Surface
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
09f11bd37e
GRAPHICS: Fix transparency in ManagedSurface bitmaps
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
a299f8b8f7
GRAPHICS: Retain original SVG transparency and expose its pixelformat
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
916859ab86
GRAPHICS: Added (hacky) blitManagedSurface
...
So far, it is hardcoded, but in reality we need to merge
ManagedSurface and TransparentSurface and add blit() methods
to TransparentSurface
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
66f10061d2
GRAPHICS: Switch SVG renderer to ManagedSurface
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
9894efd574
GRAPHICS: Added copyFrom(Surface) to ManagerSurface
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
6b785ecdd0
GRAPHICS: Fix pixelformat for SVG
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
b19fd0b60f
GRAPHICS: Properly scale SVG image on rendering
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
5f80a79871
GUI: Fix crash when requested 0 x 0 SVG rendering
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
f78155b12f
GRAPHICS: Fix rounded square rendering
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
88fa55c7c6
GRAPHICS: Fix warnings
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
40018d0882
GRAPHICS: Initial code for SVG rendering
2021-04-11 21:21:44 +02:00
Eugene Sandulenko
7a09662701
GRAPHICS: Fix artifacts in rounded square border drawing in GUI
2021-04-11 21:21:44 +02:00
Orgad Shaneh
49053f2b9b
GRAPHICS: Remove unused const
...
Amends commit 0443d5a133e571b3937ba3ca2d045708448a77ca.
Detected by Clang.
2021-04-10 15:29:08 +03:00
Torbjörn Andersson
2fb992ed4e
GRAPHICS: Clip Mac font glyphs to the destination surface
...
This was probably causing instabilities in the MacVenture engine. The
engine is pretty broken at the moment, and the command window is so
small that text doesn't fit in it at all. Hopefully this will make the
remaining errors easier to debug... some day.
2021-04-04 10:23:20 +02:00
ysj1173886760
2ab965e53e
GRAPHICS: MACGUI: fix the bug dumping when initializing Wage Engine
2021-04-01 16:08:56 +02:00
ysj1173886760
0dcde7c96a
GRAPHICS: MACGUI: add new feature that when scroll wheel, the scroll bar will also display
2021-04-01 16:08:56 +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
aba96cb38f
GRAPHICS: MACGUI: recalc the scrollSize and scrollPos, in order to fix scroll bar for mactextwindow
2021-04-01 16:08:56 +02:00
ysj1173886760
0443d5a133
GRAPHICS: MACGUI: remove drawSimpleBorder which draws the border manually
2021-04-01 16:08:56 +02:00
ysj1173886760
f2825c85de
GRAPHICS: enhance blit in nine-patch with transparency color
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
c5481d9c02
GRAPHICS: MACGUI: modify the logic of drawInput and appendText, in order to fix the bug of cursor dislocation and incorrectly drawing the input
2021-04-01 16:08:56 +02:00
ysj1173886760
63f5de7069
GRAPHICS: MACGUI: init _textShadow at mactext constructor
2021-04-01 16:08:56 +02:00
ysj1173886760
0fdf29ca19
GRAPHICS: MACGUI: fix the bug when splitting a new line
2021-04-01 16:08:56 +02:00
Cameron Cawley
099b593943
GRAPHICS: Add functions for getting and setting pixels in a surface
2021-03-28 09:50:15 -03:00
ysj1173886760
db6a0fce54
GRAPHICS: MACGUI: fix the problem of incorrectly render the cursor and selected area
2021-03-27 13:05:31 +01:00
ysj1173886760
8e8219d0ea
GRAPHICS: MACGUI: fix the bug when splitting a new line
2021-03-27 13:05:31 +01:00
ysj1173886760
6aea4cb68b
GRAPHICS: MACGUI: fix the bug of MacTextWindow incorrectly drawing the surface
2021-03-27 13:05:31 +01:00
ysj1173886760
85ecee5cde
GRAPHICS: MACGUI: fix the bug of splitString which incorrectly deal with \n and incorrect order of draw rectangles in draw function
2021-03-27 13:05:31 +01:00
ysj1173886760
3f4e072632
GRAPHICS: MACGUI: Added flag to load ScummVM wallpaper optionally
2021-03-27 13:05:31 +01:00
ysj1173886760
312788b228
GRAPHICS: MACGUI: fix the bug dumping when initializing Wage Engine
2021-03-27 13:05:31 +01:00
a/
851b0c5edc
GUI: Add lowres support for the renderer dropdown
2021-03-26 15:34:22 +01:00