Eugene Sandulenko
da01e83906
GRAPHICS: MACGUI: Further work on nested submenus
2019-10-01 02:05:56 +02:00
Eugene Sandulenko
8357725bc2
GRAPHICS: MACGUI: Code for drawing nested submenu arrows
2019-10-01 00:58:16 +02:00
D G Turner
dccf5c1960
GRAPHICS: Add Default Constructor for Cursor Structure
...
This has a similar issue to the Palette structure and thus this will
avoid possible unstable uninitialized bugs which could be very hard
to track down or replicate.
2019-09-30 04:00:11 +01:00
D G Turner
730a89ddc5
GRAPHICS: Add Default Constructor For Palette Structure
...
This is used for outPalette in sci/graphics/palette32 code without
calling through the nominal constructor which leaves the various
fields _possibly_ uninitialised and thus triggers various compiler
warnings. Adding a default constructor fixes the root cause.
2019-09-30 03:46:30 +01:00
Eugene Sandulenko
3fbcc67766
GRAPHICS: MACGUI: Load border padding directly from the 9-patch
2019-09-29 23:26:05 +02:00
Eugene Sandulenko
45ef1eb166
GRAPHICS: Fix padding calculation for 9-patch images
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
25159714fb
GRAPHICS: Allow 256-byte palettes to 9-patch
2019-09-29 17:40:12 +02:00
Eugene Sandulenko
f7262a4e43
GRAPHICS: Added more debug output to 9-patch
2019-09-29 17:39:44 +02:00
Eugene Sandulenko
ab14c41038
GRAPHICS: MACGUI: Added safaguards to border blitting
2019-09-29 17:28:50 +02:00
Eugene Sandulenko
2da99ab0dc
GRAPHICS: Fix NinePatch palette length.
...
Byte did not allow to have 256 color palettes.
2019-09-29 16:40:06 +02:00
Eugene Sandulenko
547122f738
MACGUI: Added sanity check to 9-patch recalculatuon
2019-09-29 00:35:13 +02:00
Eugene Sandulenko
772e60526f
GRAPHICS: Initialize class variable
2019-09-28 01:48:11 +02:00
Eugene Sandulenko
1dd056b689
MACGUI: Do not assert when recalculating boards on loading
2019-09-28 01:29:35 +02:00
D G Turner
d83e0df8f0
GRAPHICS: Fix MSVC Warning in Nine Patch
2019-09-15 23:24:33 +01:00
Bastien Bouclet
042e196488
GRAPHICS: Fix VectorRenderer's colorFillClip to apply the clipping rect
2019-09-08 19:55:23 +02:00
Strangerke
b1db45b718
HDB: Remove useless returns
2019-09-07 22:49:07 +02:00
Eugene Sandulenko
3851c2d9a6
GRAPHICS: Added source transparency parameter to ManagedSurface::transBlit
2019-09-03 17:17:14 +02:00
Eugene Sandulenko
14f8e0574f
GRAPHICS: Fix Managed Surface alpha blending
2019-09-03 17:17:14 +02:00
sluicebox
60fcf993e7
GRAPHICS: Display Mac monochrome cursor inverted pixels
...
Bug #7050
2019-08-21 14:13:26 +03:00
D G Turner
d78459f8bc
GUI: Fix GCC Compiler Warnings in GUI Theme Parser Code
...
This removes the usage of memset to clear complex structures and replaces
them with constructor methods for the structures which will be executed
when these are instantiated.
2019-08-17 05:03:04 +01:00
Cameron Cawley
92a3a3a8a5
GRAPHICS: MACGUI: Allow loading menus from resource forks
2019-08-11 22:27:11 +03:00
Cameron Cawley
9052a16887
GRAPHICS: MACGUI: Use Common::String for addMenuItem and addMenuSubItem
2019-08-10 14:50:33 +01:00
Cameron Cawley
1632fba91e
GRAPHICS: MACGUI: Don't hide the menu bar if kWMModeAutohideMenu is not enabled
2019-08-10 13:08:15 +01:00
Cameron Cawley
fe5dddf901
GRAPHICS: Add a version of CursorManager::replaceCursor that accepts a Graphics::Cursor
2019-08-09 23:58:32 +03:00
Thanasis Antoniou
4630895ccc
COMMON: Explain new params for wordWrapText()
2019-08-02 00:08:38 +02:00
Thanasis Antoniou
1bca3de594
COMMON: Support text wrapping with even width line segments
...
The new arguments are optional. The lines segments will be close to the same width.
The algorithm is similar to the one we had for Blade Runner but not exactly the same, since that one would wrap a line at a white space after the theoretical split point (quotient of full line text width divided by target lines number)
2019-08-02 00:08:38 +02:00
SupSuper
1669ef6244
GRAPHICS: Fix ManagedSurface transBlitFrom ignoring flipped parameter
2019-07-14 00:46:30 +02:00
SupSuper
176109da59
GRAPHICS: Fix wrong rect size when blitting subsurface to ManagedSurface
...
We want the srcRect size and not the original surface size
2019-07-14 00:46:30 +02:00
Bastien Bouclet
c1431b58c1
GRAPHICS: Move stem darkening to the last load ttf argument
...
Fixes the GUI passing the charset mapping in the argument slot for stem
darkening. Fixes the Russian characters being improperly displayed in
the GUI.
Fixes #1560 .
2019-07-01 17:25:25 +02:00
Le Philousophe
3a7219fa57
JANITORIAL: Avoid C4121 warnings in MSVC by reordering fields
...
C4121 is about 'symbol': alignment of a member was sensitive to packing
2019-06-30 21:43:58 +03:00
Bastien Bouclet
d474e3f94f
ALL: Sync with ScummVM - rev. ea3f8f2e33
2019-06-29 19:08:44 +02:00
Bastien Bouclet
308c018141
STARK: Add an engine option to enable font anti-aliasing
...
Makes use of stem darkening which requires at least FreeType 2.9
2019-06-29 16:42:55 +02:00
lolbot-iichan
c4dc251f2b
GRAPHICS: Fix fully transparent pixel blit
...
In BLEND_NORMAL mode with color != 0xffffffff, blending fully
transparent pixel was resulted in slightly modifying some background
colors, because old value X was a bit different from new value (X*255>>8).
This fixes defect #10686 WME: Sprite background is not fully transparent
if AlphaColor is set
2019-06-24 11:27:44 +03:00
Le Philousophe
ed34a41810
GRAPHICS: Fix rects handling in ManagedSurface::copyFrom
...
Like in create(), when using copyFrom the whole surface gets new data
and is now completely dirty so let's use markAllDirty.
2019-06-09 14:38:31 -07:00
Le Philousophe
1297ae2b76
GRAPHICS: Fix ManagedSurface::copyFrom memory handling
...
When calling ManagedSurface::copyFrom, _disposeAfterUse should be set to
YES because inner surface frees up old pixels array and creates a new one.
2019-06-09 14:38:31 -07:00
Filippos Karapetis
7346b69d88
GRAPHICS: Initialize potentially uninitialized variables
2019-05-27 14:53:46 +03:00
Cameron Cawley
8c2b09d919
COMMON: Replace NEResourceType and PEResourceType with a shared enum
2019-05-01 23:52:56 +03:00
Bastien Bouclet
6a231e4b60
GRAPHICS: Look for fonts.dat in extrapath
...
When running from the source tree, it is convenient to have extrapath
set to dists/engine-data, where fonts.dat is located.
2019-05-01 05:50:08 +02:00
Bastien Bouclet
31f389f748
IMAGE: Allow setting the output pixel format to the JPEG decoder
2019-04-28 09:21:37 +02:00
Bastien Bouclet
0d5d04ca3a
IMAGE: Allow setting the output pixel format to the JPEG decoder
2019-04-28 07:59:14 +02:00
Daniel
903569cab8
GRAPHICS: Fix ManagedSurface dirty rects when drawing lines
...
Fixes an invalidRect assert when drawing lines which don't go from top-left to bottom-right.
2019-04-26 13:08:38 +03:00
Johannes Schickel
3d469682fc
GRAPHICS: Add a PixelType to ColorMasks.
...
This PixelType is the underlying type (uint16/uint32) of a pixel specified by
ColorMasks.
2019-04-01 00:29:23 +03:00
Eric Culp
627fbaf8a0
GRAPHICS: Return value in dummy functions
2019-04-01 00:29:23 +03:00
Eric Culp
c666ecd41d
GRAPHICS: Respect alpha and rgba formats in interpolation and conversion
2019-04-01 00:29:23 +03:00
Eric Culp
c2ddab7dd2
GRAPHICS: Fix braces in two interpolate functions
2019-04-01 00:29:23 +03:00
Eric Culp
e3357083d7
GRAPHICS: Change another interpolation function in Edge filter.
...
A 2 to 1 interpolation was causing errors. It is fixed, renamed, and
moved to the common interpolation file.
2019-04-01 00:29:23 +03:00
Eric Culp
0246ca8da0
GRAPHICS: Change Edge filter to use shared interpolation functions
2019-04-01 00:29:23 +03:00
Eric Culp
3d57c13af0
GRAPHICS: Add dummy specializations for some interpolate* functions
...
They use ColorMask values not present in 2-byte ColorMasks. Since they
should never be used on 2-byte pixel data, the dummy implementations
assert(0) and should be removed by any optimizing compiler since no
code path can ever reach them.
2019-04-01 00:29:23 +03:00
Eric Culp
c6ee138b74
GRAPHICS: Fix typo of qlowBits
2019-04-01 00:29:23 +03:00