Commit Graph
56 Commits
Author SHA1 Message Date
Einar Johan Trøan Sømåen dc4e3150f3 WINTERMUTE: Correct some doxygen-comments in TransparentSurface. 2013-10-29 02:59:52 +01:00
Willem Jan Palenstijn 8c8b1b7da7 WINTERMUTE: Integrate SDL_rotozoom code for scale/rotoscale 2013-10-06 17:36:32 +02:00
Willem Jan Palenstijn 15d57c8a9c WINTERMUTE: Let pixel blending functions be inlined 2013-10-05 17:45:00 +02:00
Willem Jan Palenstijn 0e2cf28d99 WINTERMUTE: Speed up scale()
This is a tweaked version of a patch from eriktorbjorn.
2013-10-05 00:10:09 +02:00
Einar Johan Trøan Sømåen 48ad18d266 Merge branch 'refac'
Conflicts:
	engines/wintermute/graphics/transparent_surface.cpp
	engines/wintermute/graphics/transparent_surface.h
2013-09-30 11:23:57 +02:00
Einar Johan Trøan Sømåen 12e7cb401f WINTERMUTE: Formatting with Astyle (UIButton, UIEdit, UIObject, UIWindow, TransparentSurface) 2013-09-30 11:18:54 +02:00
Einar Johan Trøan Sømåen 5afb297e39 WINTERMUTE: Constify some getters in TransparentSurface, UIObject and UIWindow 2013-09-30 11:12:25 +02:00
Einar Johan Trøan Sømåen f5fa2edd22 WINTERMUTE: Remove asserts in Blend-functions in TransparentSurface. 2013-09-23 19:07:24 +02:00
Tobia Tesan b4161f54b6 WINTERMUTE: Add support for additive/subtractive blending in TransparentSurface 2013-09-23 19:06:32 +02:00
Tobia Tesan efc4284b42 WINTERMUTE: Keep _alphaMode private in TransparentSurface 2013-09-21 23:22:06 +02:00
Willem Jan Palenstijn 2141ad285e WINTERMUTE: Fix colormod with alpha blending
Now apply colormod only to the src color instead of to the dst.
The original code did this inconsistently depending on if the
colormod was 0 or not.
2013-08-25 23:36:53 +02:00
Willem Jan Palenstijn e9cbda135b WINTERMUTE: Fix alpha blending with colormod
This fixes numerous transparency effects in J.U.L.I.A.
2013-08-25 23:21:19 +02:00
Einar Johan Trøan Sømåen ea19c4162d WINTERMUTE: Add binary alpha-blitting.
For now, no RLE, or anything, but the infrastructure for it
is put in place here.
2013-08-20 18:00:17 +02:00
Einar Johan Trøan Sømåen e824ebaa44 WINTERMUTE: Change pixel-format to RGBA. 2013-08-20 16:52:29 +02:00
Willem Jan Palenstijn 91c2f8fb09 WINTERMUTE: Don't use a lookup table for alpha
This gives a drawTickets() speed increase of about 10% in the JULIA demo
(on a core i7 920).
2013-08-19 23:14:20 +02:00
Tobia Tesan a653ae20d5 WINTERMUTE: Fix offset calculation with partial rects when sprites are mirrored.
This fixes the dress bug, aka Rosemary appearing "jigsawed" when passing
over her with the cursor when she is facing east.
See bug #3592907
2013-08-16 00:44:27 +02: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 e5f0c42a65 WINTERMUTE: Fix incorrect parameter order for getBasePtr.
This is a regression from 19fa89b8f5. Thanks to
fuzzie for noticing.
2013-08-06 20:11:27 +02:00
Einar Johan Trøan Sømåen a932e51b14 WINTERMUTE: Fix formatting. 2013-08-05 03:25:22 +02:00
Johannes Schickel 1ce54c217a WINTERMUTE: Fix end of namespace comments. 2013-08-04 00:51:09 +02:00
Johannes Schickel d5298006f3 WINTERMUTE: Do not set Surface::pixels directly anymore. 2013-08-03 04:14:08 +02:00
Johannes Schickel 0ee407c44b WINTERMUTE: Take advantage of Surface::getPixels. 2013-08-03 04:02:53 +02:00
Johannes Schickel 19fa89b8f5 WINTERMUTE: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 04:02:48 +02:00
Tobia Tesan e3381cff0d WINTERMUTE: #ifdef ENABLE_BILINEAR -> #if ENBABLE_BILINEAR 2013-08-01 02:17:32 +02:00
Tobia Tesan 1c25eb2490 WINTERMUTE: Formatting 2013-08-01 02:17:31 +02:00
Tobia Tesan 14d151ab31 WINTERMUTE: Fix #ifdef in transparent_surface.[h|cpp] 2013-08-01 02:17:25 +02:00
Tobia Tesan 1a8a9bab86 WINTERMUTE: Compile bilinear copy only if needed 2013-08-01 02:17:25 +02:00
Tobia Tesan 381df0c64a WINTERMUTE: Various explicit casts
* for floor/ceil output in transform_tools.cpp
* for projX/Y in transparent_surface.cpp
* in transpaprent_surface.cpp
2013-08-01 02:10:42 +02:00
Tobia Tesan 566495de3b WINTERMUTE: Remove unused variable in transparent_surface.cpp 2013-08-01 00:24:43 +02:00
Tobia Tesan 9cfea04846 WINTERMUTE: Formatting 2013-08-01 00:06:39 +02:00
Tobia Tesan 5a9e917a60 WINTERMUTE: Fix operator precedence in scale() 2013-08-01 00:06:38 +02:00
Tobia Tesan a0561f1aa5 WINTERMUTE: Fix calculation of inverse angles 2013-08-01 00:06:36 +02:00
Tobia Tesan 9f97ad6a3e WINTERMUTE: s/*transform/const &transform/ 2013-08-01 00:04:21 +02:00
Tobia Tesan 285ed18979 WINTERMUTE: Rename rotate() -> rotoscale() for consistency 2013-08-01 00:03:47 +02:00
Tobia Tesan b34d7b7539 WINTERMUTE: *transform as pointer in transform_tools 2013-08-01 00:03:46 +02:00
Tobia Tesan b788ae7f38 WINTERMUTE: Swap flip bits 2013-08-01 00:02:49 +02:00
Tobia Tesan e47deb0e0e WINTERMUTE: Rename pixel copy functions 2013-08-01 00:02:48 +02:00
Tobia Tesan e30ab15bb0 WINTERMUTE: Move if() outside transform loop 2013-08-01 00:02:48 +02:00
Tobia Tesan 321c7f0716 WINTERMUTE: Removed useless argument from rotate() 2013-08-01 00:02:47 +02:00
Tobia Tesan 58e096de97 WINTERMUTE: Add rotation
Add actual rotation code, make ticket-system transformStruct-aware
2013-08-01 00:02:47 +02:00
Tobia Tesan 384dd8da7e WINTERMUTE: Bilinear scaling.
Refactor scale(), factor out actual mapping algorithm, add bilinear
scaling
2013-07-31 23:58:23 +02:00
Einar Johan Trøan Sømåen 6ccfac7e33 WINTERMUTE: Avoid dereferncing null-pointer in TransparentSurface 2013-04-17 17:08:58 +02:00
Einar Johan Trøan Sømåen 980dc4a456 WINTERMUTE: Replace all NULLs with nullptr. 2013-01-26 18:07:07 +01:00
Einar Johan Trøan Sømåen 426dda70e1 WINTERMUTE: Don't scale 2Bpp images with code aimed at 4Bpp 2013-01-24 17:14:51 +01:00
Einar Johan Trøan Sømåen 2c2fe9e941 WINTERMUTE: Correct a delete/delete[]-mismatch pointed out by valgrind 2013-01-22 23:38:00 +01:00
Johannes Schickel 89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Einar Johan Trøan Sømåen 2039ea6b8d WINTERMUTE: Fix g++ warnings listed by LordHoto 2012-08-31 14:01:18 +02:00
Einar Johan Trøan Sømåen fed19cb66a WINTERMUTE: WinterMute -> Wintermute 2012-08-13 03:42:30 +02:00
Einar Johan Trøan Sømåen ddfa227b93 WINTERMUTE: Cleanup in TransparentSurface. 2012-08-13 02:24:15 +02:00
Einar Johan Trøan Sømåen 30f35c4c3f WINTERMUTE: Use 64k-tables for alpha-blitting. 2012-08-13 01:13:16 +02:00