Commit Graph
32 Commits
Author SHA1 Message Date
Pragyansh Chaturvedi e439beece7 GRAPHICS: Bump color parameter to uint32 type for functions using it 2022-09-09 02:21:47 +02:00
Cameron Cawley 07498687bd GRAPHICS: Add Surface::copyRectToSurfaceWithKey() 2022-06-05 17:28:28 +03:00
Cameron Cawley 085130c6da GRAPHICS: Move ManagedSurface::clip() to the Surface class 2022-06-03 16:00:46 +01:00
Paul Gilbert 276e83ffee CHEWY: Fix drawing boxes and lines 2022-03-03 18:35:11 -08:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paul Gilbert baccbedf50 GRAPHICS: Changed surface classes sizes from uint16 to int16 2021-07-04 18:24:27 -07:00
Mathias Parnaudeau deefffd983 GRAPHICS: Fix leak in managed surface
In the case of the ManagedSurface constructor from a Surface object,
_disposeAfterUse is not initialized. But more, copyFrom() sets
_disposeAfterUse to YES after allocation of buffer. And then,
after the call to copyFrom, _disposeAfterUse was set to NO, what
made the pixels buffer not freed.
2021-05-12 14:10:26 +03:00
Eugene Sandulenko 6217cf8a37 GRAPHICS: Added ManagedSurface constructor from Surface 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
Cameron Cawley 099b593943 GRAPHICS: Add functions for getting and setting pixels in a surface 2021-03-28 09:50:15 -03:00
Paul Gilbert 4142f7b7f8 GRAPHICS: Allow TTFFont to handle ManagedSurfaces with transparent pixels 2021-02-26 17:58:19 -08: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
Paul Gilbert 420cee48a5 GRAPHICS: Allow ManagedSurface blitting to ignore transparency 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
Bartosz Gentkowski 529b64d8cd DOXYGEN: Review of high prio files from graphics
Editing doxygen comments in:

- cursorman.h
- font.h
- managed_surface.h
- pixelformat.h
- surface.h
2020-12-01 23:24:37 +00: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
Eugene Sandulenko 915d4615ba GRAPHICS: Added mask-driven transparency blitting to ManagedSurface 2020-04-24 00:51:24 +02:00
Paul Gilbert 9214ecb1d7 GRAPHICS: Added a hasTransparentColor method to ManagedSurface 2020-04-09 18:00:54 -07:00
Paul Gilbert 914fad839d GRAPHICS: Add a getPalette method to ManagedSurface 2020-04-09 18:00:54 -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 4e58ef479b GRAPHICS: Make ManagedSurface::clip() public 2019-12-27 13:39:56 +01:00
Eugene Sandulenko 3851c2d9a6 GRAPHICS: Added source transparency parameter to ManagedSurface::transBlit 2019-09-03 17:17:14 +02: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
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
Paul Gilbert 3e8ed4eafc GRAPHICS: Add convertToInPlace method to ManagedSurface 2018-12-08 19:05:59 -08:00
Eugene Sandulenko 355c4fa646 JANITORIAL: Remove more trailing spaces 2016-10-09 15:02:02 +02: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