Commit Graph
61292 Commits
Author SHA1 Message Date
Tobia Tesan 0d407fd206 WINTERMUTE: Express 180.0f as float in TransformTools 2013-08-01 00:21:35 +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 9cfea04846 WINTERMUTE: Formatting 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 5a9e917a60 WINTERMUTE: Fix operator precedence in scale() 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 ab022b1798 WINTERMUTE: // End of namespace Wintermute 2013-08-01 00:06:37 +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 f014cccb94 WINTERMUTE: Formatting 2013-08-01 00:03:50 +02:00
Tobia Tesan 0153f762b1 WINTERMUTE: Defaults -> float 2013-08-01 00:03:49 +02:00
Tobia Tesan dafcef5c9f WINTERMUTE: Replace normalization loop with if() for legibility 2013-08-01 00:03:49 +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 8bed134ad6 WINTERMUTE: Force angle normalization
This fixes the issues in J.U.L.I.A.
2013-08-01 00:02:57 +02:00
Tobia Tesan b788ae7f38 WINTERMUTE: Swap flip bits 2013-08-01 00:02:49 +02:00
Tobia Tesan d2a249384e WINTERMUTE: Partial fix for mirrored sprites
Still weird with rotated + mirrored + scaled sprites. Offset.
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 cced42a765 WINTERMUTE: Add cast op Common::Rect => Rect32 2013-08-01 00:02:36 +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
Tobia Tesan 66ba2ea455 WINTERMUTE: Refactor some bits to use TransformStruct 2013-07-31 23:52:12 +02:00
Tobia Tesan 3c0089e31e WINTERMUTE: Introduce TransformTools 2013-07-31 23:47:57 +02:00
Tobia Tesan 03c4b7a240 WINTERMUTE: Introduce TransformStruct and FloatPoint; add operators to Point32 2013-07-31 23:26:09 +02:00
Einar Johan Trøan Sømåen b0ce97bccf Merge pull request #358 from tobiatesan/fix_wme_base_disk
WINTERMUTE: Remove fixedPath snippet
2013-07-31 09:05:53 -07:00
Einar Johan Trøan Sømåen 58855dd37f WINTERMUTE: Add detection for James Peris (Full Version) 2013-07-31 16:02:38 +02:00
D G Turner 26a9b528da COMMON: Move definition of math constants to scummsys header.
This should have no effect on common/math.h as scummsys is included at
the top anyway, but this will fix compilation on some toolchains when
strict ANSI language compliance is enabled i.e. -std=c++11, rather than
-std=gnu11.

This causes an issue as a side effect is to set a guard which disables
various non-standard defines in the system headers i.e. the M_PI and
M_SQRT1_2 constant definitions in the MinGW x86_64 toolchain on
buildbot.

By moving this into scummsys.h after the point of system math.h
inclusion, we can ensure that M_PI etc. are always present.
2013-07-31 06:18:58 +01:00
Paul Gilbert 1809cc5673 TSAGE: R2R fixes for reading infodisk 2013-07-30 23:00:55 -04:00
Paul Gilbert 52886eed68 TSAGE: Bugfixes for giving reader to Miranda 2013-07-30 22:40:47 -04:00
D G Turner ffef92a134 MORTEVIELLE: Fix two GCC compiler warnings.
The first is due to a variable set but never used i.e. destSurface, but
I think this call is still needed to lock the area being copied, hence
have removed the variable, but not the call.

The second was a real bug in the type of the print format string used
for savegame naming. slot is a number, not a string and can vary from 0
to 999, hence the 3 digit fixed size with zero padded prefix.
2013-07-31 03:36:16 +01:00
Einar Johan Trøan Sømåen 1396052dc9 WINTERMUTE: Add hack to allow language-selection in James Peris demo. 2013-07-31 04:26:28 +02:00
Einar Johan Trøan Sømåen f691e005f8 WINTERMUTE: Add detection for both english and spanish James Peris Demo. 2013-07-31 04:26:28 +02:00
Einar Johan Trøan Sømåen e296ac1d47 WINTERMUTE: Let engine know both gameid and language of target as well as targetname. 2013-07-31 04:26:28 +02:00
D G Turner b4a0fd13ef MORTEVIELLE: Another fix for WinCE compilation.
S_OK is a system define in the WinCE toolchain library headers, so this
conflicts. Renamed to S_OKAY in the engine code to avoid this.
2013-07-31 01:07:48 +01:00
uruk 5290eb9879 AVALANCHE: Repair Lucerna::draw_also_lines(). 2013-07-30 23:43:20 +02:00
uruk 6ffcb714af AVALANCHE: Broaden Avalot::handleKeyDown(). 2013-07-30 22:25:04 +02:00
D G Turner d81f6450c9 NEVERHOOD: Silence noisy compiler warning.
This is due to NULL being used. Switching to nullptr which is equivalent
i.e. 0 should silence this.
2013-07-30 21:18:01 +01:00
D G Turner 3a4507bf5a MORTEVIELLE: Fix compilation on WinCE.
The LANG_* symbols were colliding with defined symbols in the WinCE
system headers. Renamed to avoid this.
2013-07-30 20:53:07 +01:00