Willem Jan Palenstijn
6d1ca9d94e
WINTERMUTE: No longer use ticket->_drawNum
2013-09-26 02:17:26 +02:00
Willem Jan Palenstijn
b27ac796d8
WINTERMUTE: Remove unnecessary re-iteration
2013-09-26 02:17:26 +02:00
Willem Jan Palenstijn
dbbf95ca50
WINTERMUTE: Mirror _drawNum with an iterator
2013-09-26 02:17:22 +02:00
Willem Jan Palenstijn
c6220a9cd1
WINTERMUTE: Remove _tempDisableDirtyRects
2013-09-26 02:17:05 +02:00
Willem Jan Palenstijn
aa24cb5e8d
WINTERMUTE: Remove ticket batching
2013-09-26 02:17:05 +02:00
Tobia Tesan
d6c21f8c1e
WINTERMUTE: Pass blendMode to blit() in RenderTicket.
2013-09-23 19:06:57 +02:00
Tobia Tesan
64a3294ec5
WINTERMUTE: Cast zoom inside display(Trans?)Zoom
2013-09-18 18:19:19 +02:00
Eugene Sandulenko
bc1a21f210
Merge pull request #387 from tobiatesan/trim_arguments
...
WINTERMUTE: Remove useless Rect extra argument from fadeToColor.
2013-09-12 10:54:37 -07:00
Tobia Tesan
4fec6dd361
WINTERMUTE: Remove useless Rect extra argument from fadeToColor.
...
It is not used anywhere, and Mnemonic has confirmed that the original
engine does NOT support anything but full screen fades.
2013-08-29 02:01:16 +02:00
Willem Jan Palenstijn
e432d0a83f
WINTERMUTE: Remove duplicate code
2013-08-27 00:32:24 +02:00
Willem Jan Palenstijn
e88ce8d963
WINTERMUTE: Simplify string matching
2013-08-27 00:00:37 +02:00
Willem Jan Palenstijn
e5f9cb3cbb
WINTERMUTE: Fix and clean up BaseSurfaceOSystem::finishLoad()
...
This fixes a couple of cases which fell through the cracks of the
previous chain of conditions, including 16bpp images and 32bpp images
without alpha. The latter partially fixes bug #3600667 .
2013-08-26 23:25:27 +02:00
Willem Jan Palenstijn
2597c884d3
WINTERMUTE: Fix warning
2013-08-24 12:13:37 +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
Einar Johan Trøan Sømåen
913f03a2ba
WINTERMUTE: Avoid doing alpha-blits when image doesn't have alpha.
...
Also detect images with only binary alpha.
2013-08-20 15:25:01 +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
21314e2389
WINTERMUTE: Fix computation of _renderRect.
...
This reverts the changes in 4cf1d671
.
Fixes the "notebook bug" - i.e. the notebook being only partially
drawn - in Dirty Split.
2013-08-16 00:42:58 +02:00
Willem Jan Palenstijn
0aa669cc47
WINTERMUTE: Fix (still disabled) modTargetRect logic
...
Width and height were computed incorrectly.
Also, the shift by _renderRect is not necessary since that was to compensate
for the coordinate translation done by the original SDL_RenderSetViewport,
which we don't perform.
2013-08-16 00:40:28 +02:00
Einar Johan Trøan Sømåen
693c8ca5cc
WINTERMUTE: Add atleast some comments to the renderTicket-system.
2013-08-13 18:46:03 +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
1ce54c217a
WINTERMUTE: Fix end of namespace comments.
2013-08-04 00:51:09 +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
Einar Johan Trøan Sømåen
9fb15a909c
Merge pull request #354 from tobiatesan/wintermute_rotozoom_3
...
WINTERMUTE: Wintermute rotozoom 3
2013-08-01 02:08:21 -07:00
Tobia Tesan
204c75bc27
WINTERMUTE: s/255,255,255,255/kDefaultMod/
2013-08-01 02:17:31 +02:00
Tobia Tesan
d83e4e1268
WINTERMUTE: FActor out TransformStruc initialization in repeatLastDraw loop
2013-08-01 02:17:28 +02:00
Tobia Tesan
567cd1eb12
WINTERMUTE: zoom parameter in display*** is now integer
2013-08-01 00:24:44 +02:00
Tobia Tesan
f872d31678
WINTERMUTE: Fix type-related warnings in base_surface_osystem.cpp
2013-08-01 00:24:43 +02:00
Tobia Tesan
d2d72c0110
WINTERMUTE: #define to const for TransformStruct defaults
2013-08-01 00:21:25 +02:00
Tobia Tesan
63b8132ea3
WINTERMUTE: Remove single-argument zoom, rename mirrorX => getMirrorX() in transform_struct.h
2013-08-01 00:14:29 +02:00
Tobia Tesan
06ec006766
WINTERMUTE: Remove redeclaration in render_ticket.cpp
2013-08-01 00:06:41 +02:00
Tobia Tesan
286b1d11ca
WINTERMUTE: Use Rect::width() and height() in base_surface_osystem.cpp
2013-08-01 00:06:40 +02:00
Tobia Tesan
64db90ed67
WINTERMUTE: TransformStruct by reference in engines/wintermute/base/gfx/osystem/base_render_osystem.h
2013-08-01 00:06:40 +02:00
Tobia Tesan
9d4def3bfd
WINTERMUTE: Fix alpha bug in BaseRenderOSystem::fadeToColor
...
Introduced in 37b1ff3, broke fade-in/fade-outs
2013-08-01 00:06:39 +02:00
Tobia Tesan
4405a534e5
WINTERMUTE: Remove set[Color|Alpha]Mod altogether
2013-08-01 00:06:38 +02:00
Tobia Tesan
6f03fbac84
WINTERMUTE: Pass structs by const reference
2013-08-01 00:06:38 +02:00
Tobia Tesan
163cd6a528
WINTERMUTE: Constants
2013-08-01 00:06:37 +02:00
Tobia Tesan
9f97ad6a3e
WINTERMUTE: s/*transform/const &transform/
2013-08-01 00:04:21 +02:00
Tobia Tesan
1b9967400d
WINTERMUTE: Use constants from transform_tools for consistency
2013-08-01 00:03:48 +02:00
Tobia Tesan
b6ed5ee816
WINTERMUTE: Reinstate rgbaMod comparisons for compare-tickets
2013-08-01 00:03:47 +02:00
Tobia Tesan
ae589c41ff
WINTERMUTE: Deprecate setAlphaMod, setColorMod
2013-08-01 00:03:47 +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
0b21d6dca2
WINTERMUTE: Fix alpha bug in engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
...
This fixes the "TV static" bug in J.U.L.I.A.
2013-08-01 00:03:43 +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
66ba2ea455
WINTERMUTE: Refactor some bits to use TransformStruct
2013-07-31 23:52:12 +02:00
Einar Johan Trøan Sømåen
4df545c1ee
WINTERMUTE: Handle setting Save/Load-screen to NULL.
2013-07-29 23:42:56 +02:00
Sven Hesse
989ea7cb56
JANITORIAL: Remove trailing whitespace
2013-07-14 19:01:47 +02:00