Cameron Cawley
a8221621e6
GRAPHICS: Explicitly handle matching formats in ManagedSurface::simpleBlitFrom
2024-07-05 08:38:08 +03:00
Cameron Cawley
3676b39194
GRAPHICS: Deprecate the ManagedSurface copy constructor
...
Also reverted the changes from commit 81f566a.
2024-07-04 22:54:21 +03:00
Cameron Cawley
4bbcf77f70
GRAPHICS: Add move constructors to ManagedSurface
2024-07-04 22:54:21 +03:00
Misty De Meo
81f566a71b
GRAPHICS: replace deprecated operator
2024-07-03 09:27:11 +03:00
Cameron Cawley
ff530edcb1
GRAPHICS: Deprecate ManagedSurface methods that implicitly copy pixel data
2024-07-02 13:31:18 +01:00
Cameron Cawley
224f5bb9d3
GRAPHICS: Add scaling and conversion wrappers to ManagedSurface
2024-07-02 13:31:18 +01:00
Cameron Cawley
86f9731bae
GRAPHICS: Only invalidate the updated area of the screen in ManagedSurface::blitFrom
2024-06-30 16:35:41 +03:00
Cameron Cawley
1357bfe672
COMMON: Avoid including engine headers in common code for DebugChannelDef
2024-06-20 20:15:57 +01:00
Cameron Cawley
96f9569790
GUI: Make use of simple blitting routines where possible
2024-06-19 02:36:17 +02:00
Cameron Cawley
3da558fc96
GRAPHICS: Add a common function for detecting transparent surfaces
2024-06-19 02:36:17 +02:00
Cameron Cawley
49ca5c3a0e
GRAPHICS: Add simplified blitting routines to ManagedSurface
2024-06-19 02:36:17 +02:00
Scott Percival
e1f2418c17
GRAPHICS: MACGUI: Fix MacMenu to support 32-bit graphics
2024-06-18 18:24:08 +08:00
Paul Gilbert
7559ecdf84
GRAPHICS: Copy fields, not surface itself, in ManagedSurface constructor
2024-06-06 20:31:03 -07:00
Paul Gilbert
6136c20a35
GRAPHICS: Fix setting _disposeAfterUse in ManagedSurface constructor
...
The copyFrom method called in the constructor always sets
_disposeAfterUse to true, so in the case we call the constructor
with DisposeAfterUse::NO, we need to set the field value after
the call to prevent it being overwritten.
I'm also not entirely happy that the DisposeAfterUse::YES case
automatically deletes the passed surface immediately, it seems
like it'll be prone to nasty side effects. But I'm leaving as is,
because I'm not sure which code, if any, currently relies on it
to prevent a memory leak.
2024-06-05 21:54:05 -07:00
Krish
1c1ed2e61e
GRAPHICS: MACGUI: Fix compilation with DEBUG enabled
2024-06-03 14:01:15 +02:00
Krish
a51e33f1de
GRAPHICS: MACGUl: Handle empty text in selection logic
...
Fixes crash in The Apartment version D4, movie "editableText"
./scummvm --start-movie=editableText theapartment4
2024-06-03 14:01:15 +02:00
Paul Gilbert
1f65be27d9
GRAPHICS: Palette constants cleanup, added Palette methods to ManagedSurface
2024-06-02 10:55:01 -07:00
Paul Gilbert
80e83c1a4b
GRAPHICS: Support Graphics::Palette in PaletteManager
2024-06-01 11:38:27 -07:00
Paul Gilbert
2027813d67
GRAPHICS: Added Palette::createEGAPalette method
2024-06-01 11:26:17 -07:00
neuromancer
e49387f0c8
TINYGL: revert previous commit and correct number of elements for polygon offset ADD_OP
2024-06-01 15:33:50 +02:00
neuromancer
d22cffbcba
TINYGL: correct number of elements for polygon offset ADD_OP
2024-06-01 15:33:50 +02:00
neuromancer
7ac37265f9
TINYGL: correct initialization of the stipple pattern buffer
2024-06-01 15:33:50 +02:00
neuromancer
00a0346983
TINYGL: make sure stipple pattern is copied into the internal states instead of using pointers
2024-06-01 15:33:50 +02:00
neuromancer
4cd57d59a8
TINYGL: removed the usage of stipple pattern from textured triangles
2024-06-01 15:33:50 +02:00
neuromancer
e232c9d797
TINYGL: make sure the polygon stipple pattern is copied
2024-06-01 15:33:50 +02:00
neuromancer
fdd84fd08a
TINYGL: initial implementation of tglPolygonStipple
2024-06-01 15:33:50 +02:00
Le Philousophe
7794de5e5e
GRAPHICS: OPENGL: Allow sscanf_s for GLAD
...
It is properly guarded so it won't bring any portability problem and the
file is autogenerated so this avoids to patch the file.
2024-06-01 13:42:01 +02:00
Le Philousophe
a31ea07f82
Revert "GRAPHICS: OPENGL: Disable usage of sscanf_s"
...
This reverts commit 5040e1129dc62356214fe92b606d325f0d3d6919.
Instead of modifying an autogenerated file, patch around it.
2024-06-01 13:42:01 +02:00
Eugene Sandulenko
5040e1129d
GRAPHICS: OPENGL: Disable usage of sscanf_s
...
This follows the earlier commit that added this symbol to forbidden.h
The code in glad.h is not using any features of sscanf_s, e.g.
sizes for the provided strings for safety, so it is not clear
why are they using it. Perhaps because it is declared "safer"
2024-05-30 09:24:59 +02:00
Hubert Maier
39ad7cc41e
JANITORIAL: Fix referece typo in zblit_public.h
2024-05-18 13:52:31 +02:00
Hubert Maier
9139412157
JANITORIAL: Fix refering typo in mactext.cpp
2024-05-18 13:52:31 +02:00
Hubert Maier
a545fa7539
JANITORIAL: Fix extention typos in mactext-canvas.cpp
2024-05-18 13:52:31 +02:00
Hubert Maier
395739c0f8
JANITORIAL: Fix adress typo in blit-atari.cpp
2024-05-18 13:52:31 +02:00
Eugene Sandulenko
5bd7b57282
GRAPHICS: MACGUI: Switch TTFMap to saner data structure not requiring global constructor
2024-05-12 15:23:30 +02:00
Cameron Cawley
248ab4ca15
GRAPHICS: MACGUI: Improve image quality in markdown documents
2024-05-09 15:19:17 +02:00
InariInDream
cea8312c35
GUI: load ttf from archive in Unicode branch
2024-05-04 00:14:31 +02:00
InariInDream
bd867b109a
GUI: Switch HelpDialog to TTF fonts
2024-05-04 00:14:31 +02:00
InariInDream
e70ea93149
GRAPHICS: MACGUI: Add support for TTF font maps
2024-05-04 00:14:31 +02:00
Eugene Sandulenko
ff24083fd4
GRAPHICS: Make convertTo() work with incomplete palettes
...
We we always assuming that the provided palette is 256 bytes long,
up to the point that we hardcoded this value and skipped this parameter
almost everywhere.
This changes the default parameter to 256 and allows the lesser values
be passed.
2024-05-01 22:42:03 +02:00
Paul Gilbert
dafc55d8b9
GRAPHICS: Add copy operator to Palette
2024-04-29 22:13:00 -07:00
Cameron Cawley
25db76b2b2
GRAPHICS: Reuse YUV lookup tables for identical RGB component sizes
2024-04-25 00:44:31 +02:00
Cameron Cawley
eb4359c4a4
GRAPHICS: Further reduce the size of the YUV to RGB tables
2024-04-25 00:44:31 +02:00
Cameron Cawley
c18bc24e79
GRAPHICS: Reduce the size of the YUV to RGB tables
2024-04-25 00:44:31 +02:00
polyesterswing
deff7ab160
GRAPHICS: NINEPATCH: Change the way remaining_stretch is distributed
...
Remaining stretch is given to the last stretchable mark. This commit
changes things so that the first stretchable mark is given it.
2024-04-25 00:37:48 +02:00
polyesterswing
37f8f829ff
Revert "GRAPHICS: Round border length to nearest interger"
...
This reverts commit 920a9252655f0598e9bfec17e37861c34c2a6c96.
2024-04-25 00:37:48 +02:00
Eugene Sandulenko
2c33cfb478
GRAPHICS: MACGUI: Hid too noisy warning
2024-04-21 22:33:40 +02:00
hecmar007
558167eaa2
MACGUI WAGE: Handle \n in end of string case
...
Add logic to correctly add new line when a \n is present at the end of a string.
2024-04-01 18:21:24 +02:00
Matthew Jimenez
83aa8dc291
GRAPHICS: Remove palette start from surface convertToInPlace.
...
The palette start value was always zero, and was not properly multiplied by three when used in the function
2024-03-31 23:16:59 +03:00
Matthew Jimenez
ee5ebec7ca
IMAGE: Remove palette start from image decoder.
...
The palette start value was always zero, adding complexity without benefit.
2024-03-31 23:16:59 +03:00
elasota
26c054e0c5
IMAGE: Add support for loading CUR and ANI files
2024-03-31 14:39:28 -04:00