Eugene Sandulenko
7eb9bcf705
GRAPHICS: Fix MSVC warning
2021-07-01 01:35:58 +02:00
D G Turner
a51f5e9c1a
GRAPHICS: Fix GCC Compiler Warnings
2021-05-05 11:36:04 +01:00
Eugene Sandulenko
ed9c2f97ca
GRAPHICS: Implemented debug output for Surface
2021-05-02 01:03:01 +02:00
Cameron Cawley
394288db98
GRAPHICS: Move rotoscale code out of TransparentSurface
2021-04-19 03:08:11 +03:00
Eugene Sandulenko
e8e137a46c
GRAPHICS: Create FloodFill mask with the matching pixel format of the main surface
2020-08-16 23:50:46 +02:00
Cameron Cawley
352653b8a2
GRAPHICS: Add a function for scaling a standard Graphics::Surface
...
This also makes use of it in the SCI and Wintermute engines
2020-07-18 12:16:52 +02:00
Eugene Sandulenko
8e215fad59
GRAPHICS: Fix memory leak
2020-03-30 11:48:02 +02:00
Cameron Cawley
ba035ac532
GRAPHICS: Add a function to vertically flip surfaces
2020-01-02 20:53:29 +02:00
Cameron Cawley
07834616b3
GRAPHICS: Fix dstFormat check in Surface::convertTo
2019-03-03 13:44:53 +01:00
Cameron Cawley
fd1162cb71
GRAPHICS: Support converting to 3Bpp surfaces
2019-03-02 07:29:22 +01:00
Eugene Sandulenko
934e186063
GRAPHICS: Initialize mask in FllodFill when required
2016-06-14 20:45:09 +02:00
Eugene Sandulenko
2bf0ebf317
GRAPHICS: Add possibility to specify Fill maskmode in the constructor
2016-06-14 20:30:24 +02:00
Eugene Sandulenko
60297cb9fa
GRAPHICS: Add mask mode to FloodFill class and document the class.
2016-06-03 16:39:03 +02:00
Eugene Sandulenko
e171d21fc5
GRAPHICS: Fix FloodFill
2016-06-03 15:52:48 +02:00
Eugene Sandulenko
531b190d59
GRAPHICS: Added FloodFill class to Surface.
...
Moved from WAGE engine and is using stack-based classic floodfill
implementation.
2016-06-03 00:45:56 +02:00
Johannes Schickel
53332e8066
GRAPHICS: Make GPL headers consistent in themselves.
2014-02-18 02:39:34 +01:00
RichieSams
701250efb5
GRAPHICS: Remove variable shadowing
2013-09-22 15:54:06 -05:00
RichieSams
6f4e80e36e
ZVISION: Add wrapper function for copyRectToSurface
...
Also rename some arguments to make them more clear
2013-09-12 14:07:42 -05:00
richiesams
7e8e9bf3d1
GRAPHICS: Create copyRectToSurface member function
2013-08-15 14:31:21 -05:00
Johannes Schickel
7f8308e0eb
Merge pull request #365 from lordhoto/protected-pixels
...
Make Graphics::Surface::pixels protected.
2013-08-07 12:24:59 -07:00
Johannes Schickel
260ec7a430
GRAPHICS: Add two new methods to change 'pixels' of a Surface.
...
One method is a simpler setter for 'pixels'. The other one can be used to
setup a Surface with custom data.
2013-08-03 04:02:54 +02:00
Johannes Schickel
058c22ddaa
GRAPHICS: Allow to query a Surface describing a subarea in Surface.
2013-08-02 18:47:00 +02:00
Johannes Schickel
9db17152c1
GRAPHICS: Make Surface::copyFrom work for any src pitch.
...
Formerly we assumed that the newly created surface has the same pitch as the
source surface. This is a assumption that might be invalid (for example in
case of the Surface returned by OSystem::lockScreen.)
2013-08-01 23:57:10 +02:00
Johannes Schickel
c2971374cd
Merge pull request #257 from lordhoto/graphics-conversion
...
Extend crossBlit for abitrary (in-place) conversions and add a in-place conversion to Surface
2012-10-08 14:18:33 -07:00
Johannes Schickel
eeb3959259
GRAPHICS: Add an in-place Surface PixelFormat conversion.
2012-08-28 02:27:48 +02:00
Matthew Hoops
9971e74c4c
Merge remote branch 'upstream/master' into pegasus
...
Conflicts:
base/plugins.cpp
configure
2012-04-19 08:16:24 -04:00
Joel Teichroeb
ab16233318
GRAPHICS: Fix casting away const
2012-04-03 16:54:05 -07:00
Matthew Hoops
71756bdf4e
Merge remote branch 'upstream/master' into pegasus
2012-03-20 14:49:16 -04:00
Matthew Hoops
a7740fb6de
GRAPHICS: Add support for converting surfaces from 24bpp
2012-03-20 01:06:48 +01:00
Matthew Hoops
a004897252
GRAPHICS: Add a convertTo() function to Surface
2012-03-20 01:06:47 +01:00
Matthew Hoops
00279659b2
Merge remote branch 'upstream/master' into pegasus
...
Conflicts:
video/qt_decoder.cpp
2011-12-12 15:25:28 -05:00
Johannes Schickel
61795739f8
COMMON: Rename Common::set_to to Common::fill.
...
This makes the name match with the name of the STL function with the same
behavior.
2011-11-16 18:06:30 +01:00
Matthew Hoops
c2af197edb
GRAPHICS: Add a Surface wrapper for drawThickLine
2011-10-27 19:20:28 -04:00
Chris Warren-Smith
3019b283f9
BADA: Prevent assertion failure when allocating zero bytes
2011-08-21 16:38:52 +10:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Matthew Hoops
5fdf2796d6
GRAPHICS: Cleanup formatting
2011-05-19 18:38:09 -04:00
Matthew Hoops
1ee5ef9c6f
GRAPHICS: Allow auxiliary surface functions to be used for 32bpp surfaces
2011-05-19 18:38:09 -04:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Johannes Schickel
71bdb86e02
Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
...
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16
Conflicts:
graphics/png.cpp
2011-05-01 16:54:45 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Johannes Schickel
da734a4af0
ALL/GRAPHICS: Remove Surface::bytesPerPixel.
2011-04-17 21:27:34 +02:00
Johannes Schickel
3fd919060c
GRPAHICS: Do not access Surface::bytesPerPixel anymore.
2011-04-17 20:58:08 +02:00
Johannes Schickel
4fd3e3d6fe
GRAPHICS: Add a PixelFormat member to Surface.
2011-04-17 15:17:42 +02:00
Johannes Schickel
5541af78b1
GRAPHICS: Add BPP check to Surface::move.
...
svn-id: r52968
2010-10-01 20:44:58 +00:00
Johannes Schickel
288d09389e
GRAPHICS: Cleanup.
...
svn-id: r52967
2010-10-01 20:44:41 +00:00
Florian Kagerer
0d8f4a22ae
SCUMM/FM-TOWNS: fix palette and other graphics issues
...
This commit should fix at least the following bugs/feature requests: #1032859 , #1252088 , #1055391 , #1315968 , #1315938 , #1742106 , #812891 .
The FM-Towns version of Scumm games use a mixed graphics mode with 2 layers (one with 32767 colors and one with 16 colors). Among other things I have added a screen output class which emulates this dual layer approach which allows specific hardware effects like enabling and disabling layers (e.g. in the voodoo priestess scene in MI1).
Old savegames (saved before this update) will load, but you’ll encounter palette glitches in the verb/inventory screen, since the 16 color palette for layer 2 is not contained in your savegame. This will be true at least for version 5 games. Certain scene change actions (which require the verb/inventory part to be redrawn) might correct this (e.g. try looking at the treasure map in MI1 and closing it). Version 3 games should be okay, since they use a static text palette which is never changed and which will be reset after loading a savegame.
This update requires a USE_RGB_COLORS setting for proper operation. 8 bit users will get a warning that they’ll have to expect palette glitches . Apart from that the engine in 8 bit mode should not only still work okay, but also benefit from some of the other (non palette related) improvements (e.g. bug #1032859 should be fixed even in 8 bit mode).
Japanese font drawing hasn’t been improved much yet. This will be a separate task.
svn-id: r52966
2010-10-01 19:24:52 +00:00
Eugene Sandulenko
c8a9eb9c32
GRAPHICS: Extend Surface::fill() method to support 32bits. Looks ugly
...
svn-id: r52268
2010-08-21 20:14:46 +00:00
Andre Heider
74c0db4548
Use the faster memset() in Surface::fillRect() for 16bit modes when possible.
...
svn-id: r48756
2010-04-20 20:22:33 +00:00
Max Horn
c210b71876
Moved Surface::blit to backends/vkeybd/virtual-keyboard-gui.cpp
...
svn-id: r35965
2009-01-20 22:52:29 +00:00
Andre Heider
311b267863
merge SurfaceKeyColored into Surface
...
svn-id: r35951
2009-01-20 15:21:47 +00:00