26 Commits

Author SHA1 Message Date
Cameron Cawley
394288db98 GRAPHICS: Move rotoscale code out of TransparentSurface 2021-04-19 03:08:11 +03: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
Cameron Cawley
b2f2069fb0 GRAPHICS: Move code for bilinear scaling out of TransparentSurface 2020-07-18 12:16:52 +02:00
Cameron Cawley
42019d4252 GRAPHICS: Move code for nearest neighbour scaling out of TransparentSurface 2020-07-18 12:16:52 +02:00
Filippos Karapetis
bc908dd840 GRAPHICS: Revert unwanted changes to copyright comments 2020-01-12 02:14:48 +02:00
Harsh Bawari
6bf14cf547 GRIFFON: Fix slugginess in final boss and a crash when loading the Griffon.s03 map 2020-01-11 17:35:55 +02:00
Eugene Sandulenko
b45cadb065 GRAPHICS: Enhanced setAlpha method 2019-11-13 22:07:08 +01:00
Eugene Sandulenko
c450854165 GRAPHICS: Added setAlpha() method to TransparentSurface 2019-11-13 22:07:08 +01:00
lolbot-iichan
c4dc251f2b GRAPHICS: Fix fully transparent pixel blit
In BLEND_NORMAL mode with color != 0xffffffff, blending fully
transparent pixel was resulted in slightly modifying some background
colors, because old value X was a bit different from new value (X*255>>8).

This fixes defect #10686 WME: Sprite background is not fully transparent
if AlphaColor is set
2019-06-24 11:27:44 +03:00
Paul Gilbert
11e33ba3fc JANITORIAL: Removing trailing spaces after int casts 2018-08-17 20:30:20 -07:00
David Fioramonti
e00881804f GFX: Use degree conversion common math funcs 2018-07-03 23:08:48 +01:00
Simei Yin
7ec2fcc7f6 Graphics:: Add multiply blend mode 2017-08-12 08:31:56 +02:00
Simei Yin
7d60ccc463 GRAPHICS: Consider flip mode when handling off-screen clipping 2017-08-12 00:48:47 +02:00
Colin Snover
7ce2e4cf08 GRAPHICS: Allow nearest neighbor scaling of 1Bpp and 2Bpp TransparentSurfaces
This is one small step toward allowing more shared usage of
existing scaling code.
2017-07-06 19:12:36 -05:00
Eugene Sandulenko
f1dd84fdf8 WINTERMUTE: Fix references to TransparentSurface templates 2016-12-26 18:54:44 +01:00
Eugene Sandulenko
6a11ac7f12 GRAPHICS: Avoid name clashes for templates/non-template function 2016-12-26 18:31:54 +01:00
Eugene Sandulenko
e05c57b64c GRAPHICS: Fix another instance of structures nested in templates 2016-12-26 18:07:31 +01:00
Eugene Sandulenko
dff109caba GRAPHICS: Increase portability. Hopefully it will fix PS2 backend 2016-12-26 18:00:17 +01:00
Tobia Tesan
c6ed1625f0 WINTERMUTE: Add TFilteringMode to transparent_surface.h 2016-12-26 12:28:51 +01:00
Eugene Sandulenko
355c4fa646 JANITORIAL: Remove more trailing spaces 2016-10-09 15:02:02 +02:00
Eugene Sandulenko
53a42ececf GUI: Added new alphabitmap image type 2016-08-24 16:07:55 +06:00
Alexander Tkachev
4b87563792 GUI: Add blipClip() 2016-07-03 12:23:57 +02:00
Johannes Schickel
f2926412fe GRAPHICS: Fix fast ALPHA_BINARY blitting with TransparentSurface.
This is a regression from 5d0f38d747e7583d0ca5959cd642468ba67cd04c and caused
color glitches in Wintermute.
2015-12-14 02:15:28 +01:00
Eugene Sandulenko
5d0f38d747 GRAPHICS: Fix rendering in some corner cases 2015-11-17 23:17:48 +01:00
Eugene Sandulenko
039249d39b GRAPHICS: Fix compilation for Amiga 2014-06-15 21:50:10 +03:00
Eugene Sandulenko
7322d905b3 COMMON: Copy TransparentSurface from Wintermute engine to common code 2014-06-15 15:43:06 +03:00