Commit Graph
35 Commits
Author SHA1 Message Date
Vladimir Menshakov 91cbd8fc53 GRAPHICS: Fix crash in blitFromInner if destRect is empty 2021-03-06 20:57:27 +00:00
Thierry Crozat f12813c630 GRAPHICS: Support having transparent ManagedSurface 2021-02-22 22:59:07 +00:00
Paul Gilbert c53fb72922 GRAPHICS: Better 32-bit surface handling in ManagedSurface
Fixes several issues dealing with 32-bit surfaces, such as
- transBlitFrom between 32-bit surfaces
- 32-bit surfaces where the alpha channel is explicitly turned off
- Alpha blending when dest pixels are the transparent color
- Specifying colors to fill, line routines without alpha
2021-02-20 14:37:29 -08:00
Matthew Jimenez c9696cb36c GRAPHICS: Fix blending with default transColor on 32-bpp surfaces 2021-02-06 20:56:38 -06:00
Paul Gilbert 0589f9a817 GRAPHICS: Support 24-bit surfaces as dest for blitFrom 2021-02-06 16:37:31 -08:00
Paul Gilbert 81d891ebb0 GRAPHICS: ManagedSurface transBlitFrom ignore alpha matching transColor 2021-02-06 16:37:31 -08:00
Martin Gerhardy b02ae40c9c GRAPHICS: allow scaling for opaque surfaces 2021-01-17 21:54:11 +01:00
Eugene Sandulenko b91cd981ef GRPAHICS: Match new[] with proper delete[] 2020-07-27 12:15:11 +02:00
Cameron Cawley 80430b4756 GRAPHICS: Ensure that creating a ManagedSurface from another preserves the palette 2020-07-25 13:29:09 +02:00
Cameron Cawley 731596b5f7 GRAPHICS: Support converting between different palettes using ManagedSurface 2020-07-25 13:29:09 +02:00
Cameron Cawley 44e948a283 GRAPHICS: Support full alpha when blitting using masks in ManagedSurface 2020-07-25 13:29:09 +02:00
Paul Gilbert bb405565b7 GRAPHICS: Fix memory overrun blitting from paletted surfaces 2020-05-08 18:45:34 -07:00
Eugene Sandulenko 81c443c973 GRAPHICS: Add sanity check 2020-04-27 13:57:35 +02:00
Eugene Sandulenko 915d4615ba GRAPHICS: Added mask-driven transparency blitting to ManagedSurface 2020-04-24 00:51:24 +02:00
Paul Gilbert 4f1521f542 GRAPHICS: Fix setting ManagedSurface palette 2020-03-22 20:29:37 -07:00
Paul Gilbert 3a0c62e1e4 GRAPHICS: Make copying sources as const 2020-02-01 13:13:51 -08:00
Paul Gilbert 46e49e3ed3 GRAPHICS: Add transparent color field and palette to ManagedSurface 2020-02-01 13:13:51 -08: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
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
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
Paul Gilbert 4fbf11db90 GRAPHICS: Fix ManagedSurface clear calls when no surface is set 2017-12-03 13:10:41 -05:00
Paul Gilbert 1a25abbd73 GRAPHICS: Apply eriktorbjorn's fix for non-origin transBlitFrom calls 2017-02-21 20:41:35 -05:00
Paul Gilbert a17109887c GRAPHICS: Further fix compiler warnings for byte casts 2017-01-15 10:06:00 -05:00
Paul Gilbert 553f1c2ef4 GRAPHICS: Fix compiler warnings of double to byte casts 2017-01-15 09:32:55 -05:00
Paul Gilbert 4e06799122 GRAPHICS: Support varying bit depths in ManagedSurface transBlitFrom 2016-11-26 15:25:19 -05:00
Paul Gilbert 982c8f4eeb GRAPHICS: Allow 32-bit fast blitting when formats match in ManagedSurface 2016-11-23 19:51:44 -05:00
Paul Gilbert fa0a6f2812 IMAGE: Support blitting from different surface formats in ManagedSurface 2016-11-22 21:17:54 -05:00
Eugene Sandulenko 355c4fa646 JANITORIAL: Remove more trailing spaces 2016-10-09 15:02:02 +02:00
Paul Gilbert c382e17908 GRAPHICS: Fix create call in ManagedSurface constructor 2016-03-20 20:53:01 -04:00
Paul Gilbert 14ba851d32 GRAPHICS: Fix MangaedSurface pixel casting errors 2016-03-20 16:37:19 -04:00
Paul Gilbert 390487aa43 GRAPHICS: Cleanup of ManagedSurface and Screen classes 2016-03-17 18:35:17 -04:00
Paul Gilbert 433a2daa6a GRAPHICS: Added ManagedSurface and Screen classes 2016-03-14 20:56:14 -04:00