Commit graph

21 commits

Author SHA1 Message Date
Eugene Sandulenko
5dcdfd2600
GOB: Dual-license the gob engine under LGPL
The major contributors provided their consent:
DrMcCoy, Strangerke, sdelamarre, sev.

The goal is to allow the re-release of this code under
Switch, which is incompatible with pure GPL
2024-01-08 01:44:04 +01:00
Simon Delamarre
572ac219ba
GOB: another fillRect mode used in Adibou2, "fill except one color"
Fixes level 3 of the "mask" game.
2022-12-02 11:44:30 +01:00
Simon Delamarre
a31b588ad0
GOB: fix "paint" game in Adibou2
All tools now work correctly, except "text tool" which is still buggy.
Most missing graphical primitives had already stubs in "Inter_Playtoons", implement them there instead of "Inter_v7".
2022-12-02 11:44:28 +01:00
Simon Delamarre
7ed26da61b
GOB: implement y-axis reflection, needed by some character animations
Some animations for characters moves do not exist for "east" directions (E, NE, SE), but are obtained by symmetry from "west" ones (W, NW, SW).
2022-12-02 11:44:24 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Sven Hesse
5bec0cbb9d GOB: Make coordinate parameters in Surface::fillRect() signed
And clip to [0, width), [0, height) before drawing.

This fixes bug #6864, which is a regression I introduced in
51fd528fe5 when I changed all
the drawing code to use the Surface class.

I thought that having unsigned coordinates makes sense, but
for some reason, Fascination sets _destSpriteX (which maps
to left in fillRect()) to -1, expecting the drawing code to
clip.
2015-05-07 00:34:02 +02:00
Johannes Schickel
ea21bc939a GOB: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Tomas Jakobsson
b85d51c4a3 GOB: Update to new IFFDecoder for ILBM images 2013-01-06 20:04:42 +01:00
Sven Hesse
baec4d8778 GOB: Move recolor() into class Surface 2012-07-30 01:44:45 +02:00
Sven Hesse
62cf663957 GOB: Add Surface::drawRect() 2012-06-22 18:10:52 +02:00
Sven Hesse
aa7c44a070 GOB: Hook up the PE cursors to v7 loadCursor
Addy Junior / Adibou2 now shows proper cursors.
Thanks to clone2727 for the constant nagging. :P
2012-05-29 14:22:07 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
cd6ee0589d JANITORIAL: Format forward declarations to follow convention 2011-04-28 12:20:34 +03:00
Sven Hesse
63c6d4432c GOB: Implement LBM loading
svn-id: r55732
2011-02-02 16:50:57 +00:00
Sven Hesse
b9b7b449b9 GOB: Stub o7_loadImage further
svn-id: r55730
2011-02-02 16:49:49 +00:00
Sven Hesse
6513748c46 GOB: Add Pixel::isValid() and ConstPixel::isValid()
svn-id: r55573
2011-01-27 20:50:18 +00:00
Sven Hesse
ecd2e0f3a0 GOB: Add sanity checks to Pixel and ConstPixel
svn-id: r55571
2011-01-27 20:38:58 +00:00
Sven Hesse
e6d04b8ad6 GOB: Adding a proper shade method
svn-id: r55273
2011-01-16 22:29:49 +00:00
Sven Hesse
7de179c2c8 GOB: Add setBPP()
To allow converting the surface's bytes per pixel
without destroying it first.

svn-id: r55260
2011-01-16 16:28:17 +00:00
Sven Hesse
89f946ba3e GOB: Transparency support for 16bit surfaces
svn-id: r52950
2010-09-30 13:03:51 +00:00
Sven Hesse
38e5060041 GOB: Add a new class Surface
This will be the new class managing all drawing, providing
depth-agnostic methods for all drawing operations, including 2
iterator-like classes, Pixel and ConstPixel.

svn-id: r52946
2010-09-30 13:01:07 +00:00