Commit Graph

238 Commits

Author SHA1 Message Date
Paweł Kołodziejski
9079a51cf2 fixed stupid bug
svn-id: r6982
2003-04-12 09:36:10 +00:00
Paweł Kołodziejski
6d4b748199 fixes zplanes for nonblocked games
svn-id: r6981
2003-04-12 09:31:00 +00:00
Max Horn
b015b07d22 oops, forgot debug output
svn-id: r6979
2003-04-12 02:39:16 +00:00
Max Horn
b89a2ca142 doh... best way to check for 16 color games is to check for 16 color games, isn't it? :-)
svn-id: r6978
2003-04-12 02:38:40 +00:00
Paweł Kołodziejski
5418f6d6bd fixed zplanes and a little palette changes for ega blocked games
svn-id: r6959
2003-04-10 19:30:01 +00:00
Jonathan Gray
e169b15efa use shadowPalette for ega stuff
svn-id: r6957
2003-04-10 12:20:36 +00:00
Jonathan Gray
136b4c32b6 blocked ega games now look like they should thanks to aquadran
svn-id: r6955
2003-04-10 11:34:51 +00:00
Jonathan Gray
8c4d7e2d97 make gcc happy
svn-id: r6949
2003-04-09 21:56:50 +00:00
Paweł Kołodziejski
7f6fca1528 fix ega codec again
svn-id: r6948
2003-04-09 19:50:47 +00:00
Paweł Kołodziejski
2f62d6cf4e fix ega codec
svn-id: r6947
2003-04-09 19:18:23 +00:00
Paweł Kołodziejski
c9b56af48b a little improved ega support
svn-id: r6946
2003-04-09 19:14:05 +00:00
Paweł Kołodziejski
7189347adb changed range from GF_OLD256 to GF_AFTER_V3
svn-id: r6940
2003-04-08 19:05:41 +00:00
Paweł Kołodziejski
406b0072e1 fixed reading Loom index file, and handle gfx for 16 colors games
svn-id: r6937
2003-04-07 22:47:38 +00:00
Max Horn
b8043f7570 fix for bug #695654
svn-id: r6900
2003-04-02 15:23:36 +00:00
Max Horn
c98130a0a6 cleanup
svn-id: r6855
2003-03-24 21:56:29 +00:00
Max Horn
8fcdb62f74 Patch #686427: SO_ROOM_SATURATION implementation
svn-id: r6810
2003-03-13 02:23:55 +00:00
Paweł Kołodziejski
aa3766018f updated copyrights headers
svn-id: r6726
2003-03-06 21:46:56 +00:00
Paweł Kołodziejski
093428ae9a and more cleanup
svn-id: r6718
2003-03-06 17:58:13 +00:00
Max Horn
89f6ebb77c added some asserts; added a hack that helps the COMI demo
svn-id: r6684
2003-03-04 02:43:43 +00:00
Jonathan Gray
436afde5eb add hack that attempts to workaround the offset hotspot problem in humongous games
svn-id: r6670
2003-03-03 01:53:18 +00:00
Max Horn
a6abd6bb13 Patch #689271: Usage bits fix
svn-id: r6626
2003-02-19 14:35:24 +00:00
James Brown
270e95a655 Patch 679354: ComI actor redraw patch
svn-id: r6590
2003-02-07 19:24:34 +00:00
Jonathan Gray
f1b4ec7571 remove 'small drawing optimisation' that breaks drawing of vertically scrolling rooms, and yes fingolfin in answer to the message left in the commit message on rev 2.26 it causes regression :)
svn-id: r6562
2003-01-28 00:42:32 +00:00
Max Horn
18fdd80710 small drawing optimization for V7/V8 games - tell me if that causes any regressions
svn-id: r6504
2003-01-18 19:16:23 +00:00
James Brown
4e07c1bb91 Patch 668634: Actor iteration fix
svn-id: r6484
2003-01-16 17:37:34 +00:00
Max Horn
b1c570aa6e made NUT font rendered honor _ignoreCharsetMask
svn-id: r6466
2003-01-15 03:10:28 +00:00
James Brown
5bf741f960 Patch 667613: Extend gfxUsageBits[]
svn-id: r6453
2003-01-14 10:06:56 +00:00
Max Horn
aa60f424ba fix banjo duel crash
svn-id: r6427
2003-01-12 13:58:16 +00:00
Max Horn
2636e2806a cleanup
svn-id: r6397
2003-01-11 15:53:00 +00:00
Max Horn
65fdb8fbf0 cleaned up & documented the transitionEffect() code a bit
svn-id: r6338
2003-01-05 21:18:53 +00:00
Max Horn
0ab1edf809 added an assert against the z plane count; resolved an ambigious statement (the order in which the post-increment operator is executed is not specified in the C(++) standard); indentation cleanup
svn-id: r6315
2003-01-01 17:04:13 +00:00
James Brown
be8810eaa9 Fix CMI room segfaults (too few zbuffers defined)
svn-id: r6310
2003-01-01 09:02:36 +00:00
Max Horn
8bbbf4cbaf cleanup; fixed z masking in COMI
svn-id: r6294
2002-12-31 16:44:55 +00:00
Max Horn
7f15b5d08b more cleanup
svn-id: r6292
2002-12-31 14:59:06 +00:00
Max Horn
4b6605c286 another round of cleanup on the first 6 decoders: only moved around code to work out the extreme similarities between them
svn-id: r6291
2002-12-31 04:59:23 +00:00
Max Horn
66b3d2f91a getting rid of _currentX
svn-id: r6290
2002-12-31 04:45:21 +00:00
Max Horn
6079d0f108 more cleanup
svn-id: r6289
2002-12-31 04:36:14 +00:00
Max Horn
dfea6a0d57 cleanup
svn-id: r6288
2002-12-31 04:19:46 +00:00
Max Horn
5d4f06cf1f implemented object drawing (still somewhat broken, we get a 'green screen' effetc :-). Oh yes, this probably breaks save game compatibility for COMI. Oh yeah. As if I would care <g>
svn-id: r6285
2002-12-31 03:26:02 +00:00
Jamieson Christian
7db414b203 Fixed VC++ warnings.
svn-id: r6279
2002-12-30 14:22:23 +00:00
Max Horn
1fad3ca0b9 cleanup
svn-id: r6278
2002-12-30 14:04:46 +00:00
Max Horn
f5b8b9adcf load z-planes correctly for V8; however, there is still something slightly broken (visible at the cannon which is only drawn partly)
svn-id: r6275
2002-12-30 13:15:08 +00:00
Max Horn
81c421ec0c cleanup
svn-id: r6197
2002-12-27 14:04:25 +00:00
James Brown
a6e9f3b65d Increase allowed zbuffers for CMI (One room, 16, uses at least 6.. add a few spare just in case).
svn-id: r6174
2002-12-26 18:10:14 +00:00
Max Horn
fca9ec09e7 moved CharsetRendere into its own header/source file; changed Scumm::_charset into a pointer, to make it possible to use different implementations of it
svn-id: r6147
2002-12-25 21:04:47 +00:00
Max Horn
5c39a82633 two good rules of thumb: don't use typecasts if you don't have to - type cast have a nasty habit of hiding and causing problems. When a method takes a pointer argument, if possible make it const. :-). Cleanup. Fixed font rendering in CMI: you need to call updateDirtyRect() if you modify the screen...
svn-id: r6143
2002-12-25 20:07:09 +00:00
Max Horn
aa2a85de99 fixed bomp cursor in CMI partially - still seeing flickering/tearing/artifacts, though
svn-id: r6124
2002-12-25 12:41:41 +00:00
Max Horn
fef84f3737 renamed Scumm::charset -> Scumm::_charset
svn-id: r6119
2002-12-25 12:01:04 +00:00
Max Horn
1b0963dd76 added (broken) cursor support for V8; enabled bomp drawing
svn-id: r6113
2002-12-25 03:48:27 +00:00
Max Horn
22ab263b00 getting graphics in COMI, woohoo! That's a nice christmas present, isn't it? :-)
svn-id: r6103
2002-12-24 15:45:23 +00:00
Max Horn
908de40919 some hacks to get V8 loading further. It now fails because it can't find the SMAP resource
svn-id: r6102
2002-12-24 15:27:27 +00:00
Jonathan Gray
ff7e997a48 make initBGBuffers handle the fact that v8 stores number of z buffers in RMHD not RMIH. Now we have to handle the fact that object code blocks are now a sub block of RMSC
svn-id: r6095
2002-12-24 07:53:29 +00:00
Max Horn
060562c277 partial checkin of patch #655594 (handling Y/N questions); cleanup
svn-id: r6042
2002-12-21 12:34:17 +00:00
Max Horn
50f7ffbeb6 got rid of _curVirtScreen and VirtScreen::unk1; added some comments to gfx.cpp; added a hack to enable smooth scrolling in V7 games (note: when I say hack, I mean it, it is buggy as hell and not enabled by default, use at your own risk and don't report problems with it, it's disabled by default)
svn-id: r6037
2002-12-21 01:11:42 +00:00
Paweł Kołodziejski
fa4f785f71 fixed compilation under MSVC
svn-id: r5998
2002-12-16 19:53:41 +00:00
Max Horn
54f3dc23a5 cleanup
svn-id: r5986
2002-12-16 01:25:21 +00:00
Max Horn
20c501ea58 cleanup; reordering stuff in gfx.cpp, trying to group code into logical groups (cursor, bomp, camera, palette, fades)
svn-id: r5985
2002-12-15 23:40:37 +00:00
Max Horn
826cd4b076 cleanup
svn-id: r5983
2002-12-15 21:59:59 +00:00
Max Horn
7bcbcde994 nitpick
svn-id: r5930
2002-12-13 16:11:23 +00:00
Max Horn
85a4c53a1a fix for the arrow bug in MonkeyVGA (see also bug #599442 and patch #643464)
svn-id: r5923
2002-12-13 01:30:22 +00:00
Jamieson Christian
14834cf645 Fixed myriad VC++ compile/link problems.
PLEASE DON'T MAKE CHANGES TO THE ACTUAL PROJECT FILES
UNLESS YOU MAKE THEM FOR *ALL* PRIMARY PORTS!

svn-id: r5900
2002-12-11 01:25:15 +00:00
Max Horn
3d39db9c55 added a helpe func for color weight computation; made createSpecialPalette use it, too
svn-id: r5899
2002-12-10 23:44:59 +00:00
Max Horn
c168f62bbd cleanup; only now do I see how similiar setupShadowPalette, the new setupShadowPalette and createSpecialPalette are. Throw in remapPaletteColor and darkenPalette and maybe we should restructure the code to have less duplication?
svn-id: r5894
2002-12-09 02:14:17 +00:00
Max Horn
0720fa80c8 cleanup
svn-id: r5893
2002-12-09 01:27:40 +00:00
Max Horn
df594d41ff even more cleanup
svn-id: r5839
2002-12-04 22:31:36 +00:00
Max Horn
8dd3d2ec29 more cleanup
svn-id: r5837
2002-12-04 21:46:05 +00:00
Max Horn
bb2d559d13 readded MonkeyVGA fix
svn-id: r5832
2002-12-04 14:32:40 +00:00
Max Horn
89335008e9 lots of cleanup to the graphics code; removed various global states (makes it easier to understand the code)
svn-id: r5831
2002-12-04 13:36:27 +00:00
Oliver Kiehl
133f624cc5 moved RNG to common/util.cpp
svn-id: r5778
2002-12-01 14:57:50 +00:00
Max Horn
b2049c63da fixed my workaround for the palette bug in MIVGA
svn-id: r5767
2002-12-01 02:11:19 +00:00
Max Horn
72c672e14c cleanup
svn-id: r5747
2002-11-29 15:13:49 +00:00
Max Horn
11db3df38b added MonkeyVGA palette fix, and a FIXME comment
svn-id: r5745
2002-11-29 14:22:31 +00:00
Max Horn
b6a70f4a47 small cleanup
svn-id: r5734
2002-11-28 03:08:35 +00:00
Nicolas Bacca
f53051c296 Daily alignment fix :)
svn-id: r5731
2002-11-27 22:45:36 +00:00
Max Horn
8213dd8470 speed up dissolve fade for Loom (bug #635461)
svn-id: r5726
2002-11-27 14:39:48 +00:00
Max Horn
de4c3079ca cleanup
svn-id: r5694
2002-11-22 21:08:37 +00:00
Max Horn
5627fb7c0b cleanup
svn-id: r5622
2002-11-19 16:33:33 +00:00
Max Horn
843fa5f753 in Zak256, flash light now follows the mouse cursor instead of the actor; also, the flashlight x position is now pixel based, not strip based (finer granularity)
svn-id: r5511
2002-11-10 19:00:28 +00:00
Max Horn
da5a347d3e completly decoupled engine.h/.cpp from simon.h and scumm.h; removed some static variables from drawFlashlight() and made them members of class Scumm instead
svn-id: r5506
2002-11-10 17:19:43 +00:00
Max Horn
e901190863 fix for the flashlight crash in Indy3; I am not 100% sure that this is the right way t do it, though, need to do some more reseach
svn-id: r5496
2002-11-10 15:42:53 +00:00
James Brown
7eb9753a9c Evil Geniuses arn't, otherwise the world would be far more intrested.
svn-id: r5472
2002-11-09 10:02:59 +00:00
James Brown
5923a9f5e3 This should fix the DOTT white-background bug. Someone please confirm this for me :)
svn-id: r5471
2002-11-09 09:59:25 +00:00
James Brown
6e4bc05791 Masking patch
svn-id: r5468
2002-11-08 18:40:12 +00:00
Paweł Kołodziejski
85c7c9ffe6 applied patch: #634326, and changed strip ranges for after and before scumm v7,
added comments to saveload

svn-id: r5448
2002-11-06 17:55:44 +00:00
Max Horn
63e1069ec1 removed more unused variables; cleaned up some spaces
svn-id: r5442
2002-11-06 15:29:49 +00:00
Max Horn
1974075bb3 removed unused parameters from drawBomp
svn-id: r5440
2002-11-06 14:54:21 +00:00
Max Horn
72a22e4b86 removed obsolete code; properly init variables (aquadran, can you maybe turn on some more warnings with your compiler?); some error catching
svn-id: r5436
2002-11-06 13:50:53 +00:00
James Brown
173c0eac43 Apply restore-bg part of patch 629043
svn-id: r5434
2002-11-06 08:10:57 +00:00
Paweł Kołodziejski
5d873255ea rewrote akos5 and bomp, corrected pitch in akos16, increased range of gfxbits
svn-id: r5433
2002-11-06 07:28:39 +00:00
Paweł Kołodziejski
eba9b073a4 this fix nexus problem
svn-id: r5410
2002-11-05 07:15:31 +00:00
Paweł Kołodziejski
de431c04a4 it should be _realWidth instead _realHeight
svn-id: r5409
2002-11-05 06:43:14 +00:00
Paweł Kołodziejski
5f8d47296b this fix palette problems in the dig (ex. energy), previous code doesn't exist in original, why somebody add this stuff ?
if this break something, we can add exception.

svn-id: r5408
2002-11-05 06:34:15 +00:00
Paweł Kołodziejski
f9195c154c exception only for DIG's room 23
svn-id: r5337
2002-10-27 18:49:41 +00:00
Paweł Kołodziejski
0e705b326b changed param in initVirtScreen in initScreens
svn-id: r5336
2002-10-27 18:41:27 +00:00
Paweł Kołodziejski
8e422b7825 patch: #629413 - DOTT intro fix
svn-id: r5335
2002-10-27 15:16:49 +00:00
Paweł Kołodziejski
d5473c6f5a corrections to initscreens for scummV7+
svn-id: r5332
2002-10-27 10:31:07 +00:00
Paweł Kołodziejski
390ce3dada removed hardcoded values
svn-id: r5330
2002-10-27 09:41:33 +00:00
Max Horn
46ad85ce77 another hardcoded screen width
svn-id: r5303
2002-10-24 13:18:28 +00:00
Paweł Kołodziejski
a125d1cc1a changed number strips to dynamic and increased arrays tdirty and bdirty to 80
svn-id: r5296
2002-10-24 06:28:54 +00:00
Paweł Kołodziejski
9491c85e4e fix for redraw problems in nexus
svn-id: r5292
2002-10-23 17:48:01 +00:00
Max Horn
4129aaf3cd removed old GUI code
svn-id: r5271
2002-10-23 00:24:54 +00:00
Max Horn
5151e561d5 fixing various warnings that occur with -Wshadow;some other minor cleanup
svn-id: r5239
2002-10-22 11:48:24 +00:00
James Brown
3a507cbb92 Remove some obsolete fixme's
svn-id: r5196
2002-10-20 12:18:57 +00:00
James Brown
ec158216f7 Totally random fix for Dig memory corruption. Probably not even remotely correct, someone look at this :)
svn-id: r5195
2002-10-20 12:03:56 +00:00
Max Horn
9ff8b67e13 transformed some code - is this if really needed?! if yes, for what?
svn-id: r5192
2002-10-20 01:08:54 +00:00
Max Horn
b5f0fa4c8b cleanup; fix for room 88 in The Dig (Ender, I was right, only the place was another :-)
svn-id: r5191
2002-10-20 01:02:52 +00:00
Jonathan Gray
dd7cfdb0de patch #625603 film noir mode bugfix
svn-id: r5190
2002-10-19 22:35:22 +00:00
Paweł Kołodziejski
9a8b23030a fix nexus scrolling in the dig, but partialy, there is also memory coruption with this
svn-id: r5142
2002-10-13 18:14:48 +00:00
Paweł Kołodziejski
f5d2dd45f6 fixed crash after load some savegames - proper height initialisation
svn-id: r5137
2002-10-13 11:28:39 +00:00
James Brown
2d22cc4567 Patch 621733: drawBomp() masking
svn-id: r5128
2002-10-11 11:50:06 +00:00
James Brown
969a74720c Fix some faulty resource-validation logic to allow part of the fuel-tower to work.
svn-id: r5059
2002-10-01 16:58:26 +00:00
Paweł Kołodziejski
4fc67f55c0 fixed compilation
svn-id: r5051
2002-09-30 06:22:11 +00:00
James Brown
1388814706 Patch 616144: Sam and Max layering fix (drawMaskOnBoth rewrite)
svn-id: r5036
2002-09-29 15:20:02 +00:00
James Brown
e946431af3 Patch 609334: PalManip save/load/init fixes.
Save/Load lines are commented out until the new save/load system is in place.

svn-id: r5014
2002-09-24 15:46:09 +00:00
James Brown
412075437b Patch #612847: Sam and Max painting subgame fix
svn-id: r5008
2002-09-23 15:43:29 +00:00
Max Horn
a681eb029e renamec string -> _string and sentence -> _sentence in class Scumm (I originally reworked StringTab, but then noticed the save game format depends on it <sigh>)
svn-id: r4995
2002-09-22 01:17:53 +00:00
Max Horn
6cfcd04682 trivial cleanup
svn-id: r4988
2002-09-21 16:20:52 +00:00
Travis Howell
ae353fae18 Added the following patch:
[ 598121 ] Cursor cosmetics

svn-id: r4987
2002-09-21 14:17:13 +00:00
Max Horn
f838473c25 NewGui now has its own mouse cursor code -> again one less dependency on Scumm; moved makeCursorColorTransparent to gfx.cpp where it belongs
svn-id: r4977
2002-09-19 23:06:54 +00:00
Paweł Kołodziejski
953f7112e3 applied patch: #610954
svn-id: r4966
2002-09-18 11:48:00 +00:00
James Brown
66757f4d4d Patch 609563: eriktorbjorns drawBomp() rewrite.
Scaling + Alpha. Fixes Sam and Max and Dig bugs.

svn-id: r4953
2002-09-16 15:53:52 +00:00
Max Horn
be39b94765 patch #608543 (fix for unkRoomFunc3)
svn-id: r4938
2002-09-13 23:37:22 +00:00
Max Horn
364806e4e4 patch #608138 (palManipulateInit code)
svn-id: r4925
2002-09-13 11:54:59 +00:00
Max Horn
7738fbde72 oops, my brain was backwards :-)
svn-id: r4915
2002-09-09 11:23:25 +00:00
Max Horn
0643635d0e cleanup
svn-id: r4913
2002-09-09 11:15:12 +00:00
Michael Pearce
0fbefc72aa Applied roever's screen effects patch (#602595) and fixed LethalWP's Makefile ;)
svn-id: r4909
2002-09-09 05:56:11 +00:00
Paweł Kołodziejski
daa997fab2 fixes to resolutions
svn-id: r4893
2002-09-01 15:01:40 +00:00
Paweł Kołodziejski
93b630dcfe commited patch: #601899
svn-id: r4890
2002-08-31 21:23:28 +00:00
Paweł Kołodziejski
0559f7a6aa and more fixes
svn-id: r4889
2002-08-31 19:26:04 +00:00
Paweł Kołodziejski
c1cbba1d65 more fixes
svn-id: r4888
2002-08-31 18:57:08 +00:00
Paweł Kołodziejski
bb71d9e677 fixes
svn-id: r4887
2002-08-31 18:46:00 +00:00
Paweł Kołodziejski
6e751af6c0 changed resolution values from static to dynamic, I hope I don't break something
svn-id: r4885
2002-08-31 16:29:17 +00:00
Max Horn
c41b6b53d2 fix for bug #602354
svn-id: r4882
2002-08-31 14:27:33 +00:00
Max Horn
70eec52941 minor tweaks
svn-id: r4872
2002-08-30 20:47:48 +00:00
Max Horn
4b83c17b31 some cleanup/refactoring
svn-id: r4866
2002-08-29 20:01:27 +00:00
Paweł Kołodziejski
73b031515e applied patch #599909
svn-id: r4855
2002-08-25 18:40:23 +00:00
Max Horn
e0bf735ff7 modified version of patch #598622: Round corners for flashlight
svn-id: r4811
2002-08-23 23:16:39 +00:00
Max Horn
ce46866403 Initial revision
svn-id: r4785
2002-08-21 16:07:07 +00:00