Commit Graph
53 Commits
Author SHA1 Message Date
Paul Gilbert ea524fa792 TINSEL: Fix held items not in either inventory being lost 2018-04-20 22:27:33 -04:00
Eugene Sandulenko 843694933d TINSEL: Fix out-of-bounds array access 2016-05-18 12:38:15 +02:00
Eugene Sandulenko a57aa55999 TINSEL: Safer string manipulation 2016-05-11 12:32:18 +02:00
Eugene Sandulenko ea5ac5e626 TINSEL: Fix number of buffer overruns 2016-05-09 14:36:59 +02:00
Johannes Schickel 9b138f4eb4 TINSEL: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
Torbjörn Andersson 50c8fae6ec TINSEL: Reorder loop condition to fix out-of-bounds access
This should fix CID 1003943 and CID 1003944.
2013-04-26 23:38:20 +02:00
Filippos Karapetis b05fa7f204 TINSEL: Add resource handling of the BE resources in DW1 Mac
This is the second attempt. All the BE resources of DW1 Mac are
handled correctly now. Added READ_16, READ_32, FROM_16, FROM_32 and
TO_32 to handle all of the different cases where endianess is
already handled. Note that the game scripts are LE, so these
haven't been changed
2012-12-11 02:56:48 +02:00
Filippos Karapetis b532a81b42 TINSEL: Add a WIP BE To LE SCN file conversion code (unfinished)
This is a cleaner approach to handle the Mac version of DW1 (demo
and full versions - refer to bug #3110936). This way, we can keep
the game engine as LE even with the Mac BE resource files.

Both the demo and the full version progress up to drawing the scene
graphics now and crash because of the currently unhandled bitmap
chunk.
2012-12-10 17:38:24 +02:00
Torbjörn Andersson da971e38a5 TINSEL: Fix misleading comment
I missed these in my scroll wheel pull request, but better late
than never.
2012-12-03 20:00:08 +01:00
Torbjörn Andersson 220fb66364 TINSEL: Add scrollwheel support to save/load and inventory 2012-11-24 11:06:42 +01:00
Torbjörn Andersson 29afdabb6b TINSEL: Fix inventory scrollbar handle position
The scrollbar handle was one pixel too far to the left, and the
topmost position was off by one as well. I've verified this to the
best of my ability. I've compared it visually in DOSBox (which is
a bit tricky for Discworld 2, but I think it's right now), and
against the initial Tinsel v1 source code that was added to
ScummVM. I don't know what the initial Tinsel v2 source code
looked like, though.
2012-11-22 23:04:12 +01:00
Torbjörn Andersson c16de405d7 TINSEL: Fix inventory scrolling
Adjusted NM_SLIDE_INSET and NM_SLIDE_THICKNESS to make the inventory
scrollbar work as it did before Tinsel v1 and v2 were combined. The
scrollbar worked before, but you had to click a bit to the left of
it to operate it. It's the only place in the code where these
constants are used, so it should not break anything else.
2012-11-22 22:12:51 +01:00
Paul Gilbert 2dee92a908 TINSEL: Fixed portability issue with earlier savegames 2012-08-06 20:03:56 +10:00
Filippos Karapetis b17667cbcf TINSEL: Fix bug #3541745 - "DW: PSX version has a too small Re-Start window" 2012-07-15 22:19:10 +03:00
Filippos Karapetis 4c3b4835aa TINSEL: Fix bug #3459999 - "TINSEL: DW Crash in Subtitle Menu" 2012-07-15 16:54:59 +03:00
Paul Gilbert 41692ef48a TINSEL: Refactored Tinsel engine to use the Common coroutine scheduler 2012-05-17 20:42:23 +10:00
Alyssa Milburn be35baddc7 TINSEL: Rename globals to add g_ prefix. 2012-02-22 23:14:29 +01:00
Matthew Hoops 9539017ee3 ALL: initialise -> initialize 2011-05-25 11:17:11 -04:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion 9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn 2e095e25f2 ALL: centre -> center 2011-04-14 14:34:28 +02:00
Max Horn 84184aabc0 ALL: colour -> color 2011-04-14 14:12:35 +02:00
Paul Gilbert a2367d26f9 TINSEL: Preliminary functionality for reading BE data files
svn-id: r54392
2010-11-20 03:14:03 +00:00
Max Horn 1dbf8d73d5 TINSEL: Mark all (?) global vars with a FIXME comment
Use of global vars is what prevents RTL from working in Tinsel (and
probably in other engines). More specifically, the fact that many
global vars are not explicitly inited when the engine is (re)launched.

svn-id: r54262
2010-11-16 09:53:55 +00:00
Max Horn 36d17c74d1 TINSEL: Remove unnecessary CORO_PARAM from ObjectTextOut
As a nice side effect, this gets rid of 25 out of 64 occurrences
of nullContext in the TINSEL code.

svn-id: r53935
2010-10-30 00:34:21 +00:00
Max Horn b3c3222c23 TINSEL: cleanup
svn-id: r45787
2009-11-09 22:21:23 +00:00
Max Horn 1497c4120e TINSEL: Mark all functions in dialogs.cpp explicitly as public (=extern) or private (=static)
svn-id: r45785
2009-11-09 22:20:25 +00:00
Max Horn 2bb7476a20 TINSEL: Add EnablePointing() & DisablePointing() to pdisplay.h; turn DisablePointing from a coroutine into a plain function
svn-id: r45782
2009-11-09 22:18:25 +00:00
Max Horn e959ef33e5 TINSEL: Small correction to the previous hotfix for _vm->_config crash
svn-id: r45621
2009-11-02 23:48:21 +00:00
Max Horn d10fe42416 TINSEL: Fix regression caused by the introduction of _vm->_config; proper fix will be introduced later, when dialogs.cpp gets objectified
svn-id: r45620
2009-11-02 23:42:30 +00:00
Max Horn 5cf868b757 TINSEL: Turn config code into a simple C++ class
svn-id: r45617
2009-11-02 21:56:29 +00:00
Max Horn 51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn 05508d8dcd TINSEL: Change MemoryAllocFixed to return a (kind of fake) MEM_NODE pointer; add MemoryDeinit()
svn-id: r45426
2009-10-27 00:36:56 +00:00
Max Horn bbe0b81aff TINSEL: Remove DWM_FIXED and add new MemoryAllocFixed() function
svn-id: r45401
2009-10-26 10:41:11 +00:00
Max Horn 9065dca09a TINSEL: cleanup
svn-id: r45400
2009-10-26 10:40:51 +00:00
Max Horn 240f230c1e TINSEL: Cleanup
svn-id: r45398
2009-10-26 10:40:16 +00:00
Max Horn 8870b5dbbf TINSEL: Fix apparent bug (?) in the support for the 5 flags version(s)
svn-id: r45271
2009-10-20 14:07:27 +00:00
Max Horn 774183ddce TINSEL: Make lots of stuff in dialogs.cpp static
svn-id: r45270
2009-10-20 14:06:40 +00:00
Max Horn 3399c3aeb6 Change doxygen inline comments from "//!" to "///" as proposed on -devel
svn-id: r44802
2009-10-08 21:28:57 +00:00
Max Horn f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Filippos Karapetis 3a976bfb6f TINSEL: Fixed some warnings about unreachable code
svn-id: r44295
2009-09-24 09:50:22 +00:00
Torbjörn Andersson 0999534749 The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-)

svn-id: r41061
2009-05-31 10:02:16 +00:00
Paul Gilbert 3817fbf7d0 Fixed a method name clash, and changed the Restart dialog to properly use the renamed method, rather than just setting the global variable directly
svn-id: r40158
2009-04-27 12:21:14 +00:00
Filippos Karapetis c26a162606 Converted some leftover tinselV1 code, so that the engine builds when DEBUG is set
svn-id: r39598
2009-03-21 19:57:54 +00:00
Max Horn 9cbed926cd Moved Tinsel::Serializer to Common::Serializer, so that I can use it in the SCI engine
svn-id: r39428
2009-03-15 20:30:57 +00:00
Max Horn f9ecd95d69 Whitespace cleanup: Convert space followed by tab to just tab
svn-id: r39203
2009-03-07 19:24:31 +00:00
Kostas Nakos f509f65023 add virtual keyboard backend hints for savegame name
svn-id: r39056
2009-03-01 21:54:53 +00:00
Eugene Sandulenko 696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Johannes Schickel 443158fd89 Cleanup. (Removed define and checks for USE_3FLAGS/USE_4FLAGS/USE_5FLAGS)
svn-id: r35306
2008-12-11 18:38:15 +00:00
Johannes Schickel 7c05e9e723 Fix for bug #2412503 "DW1: Subtitle menu not working (Multi-language version)".
svn-id: r35300
2008-12-11 13:32:50 +00:00