Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs
2021-04-15 21:20:36 +02:00
Ori Avtalion
9856dd9303
TINSEL: Silence g++ warnings
2021-02-15 19:08:30 +02:00
Matthew Duggan
e15c3b35db
TINSEL: Fix build when DEBUG is defined
2021-01-11 11:44:56 +09:00
Filippos Karapetis
22ee8519a9
TINSEL: Fix compilation with non-C++11 compilers. Some renaming
2020-10-04 04:26:42 +03:00
Filippos Karapetis
94997ef7d3
TINSEL: Rename variables of the Dialogs class
2020-10-04 01:15:23 +03:00
Filippos Karapetis
94fae0c94d
TINSEL: Move all dialog-related functions into a new Dialogs class
2020-10-04 01:15:23 +03:00
Filippos Karapetis
ae2e05cbd3
TINSEL: Move all handle-related functions into a new Handle class
2020-10-04 01:15:19 +03:00
Filippos Karapetis
bb54f3cd4f
TINSEL: Move all actor-related functions into a new Actor class
...
Also, merge the two different SetMoverZ() functions
2020-10-04 01:15:18 +03:00
Filippos Karapetis
41d4212da8
TINSEL: Remove an unneeded static
2020-09-25 22:24:15 +03:00
Filippos Karapetis
4f269c76d1
TINSEL: Move all cursor-related functions into a new Cursor class
2020-09-25 22:24:14 +03:00
Filippos Karapetis
63ae50e790
TINSEL: Replace usage of NULL with nullptr
2020-02-29 02:21:41 +02:00
Filippos Karapetis
939f7cf2b7
TINSEL: Move all the music related functions into a new Music class
2020-02-23 14:51:01 +02:00
Filippos Karapetis
64b750ab2e
TINSEL: Move background related functions into a new Background class
2020-02-22 18:41:39 +02:00
Filippos Karapetis
6fa96182f7
TINSEL: Move font-related code into a new Font class
...
Also, remove some wrapper functions in tinlib.cpp
2020-02-22 18:41:39 +02:00
D G Turner
b25c4b21fd
TINSEL: Fix Missing Default Switch Cases
...
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-30 23:12:30 +00:00
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