Commit Graph

52 Commits

Author SHA1 Message Date
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Johannes Schickel
3b7867ec54 MADE: Silence a few gcc warnings. 2011-10-29 20:56:00 +02:00
Johannes Schickel
7b126c5f24 MADE: Minimize #include usage. 2011-10-09 22:58:37 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Johannes Schickel
71bdb86e02 Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16

Conflicts:
	graphics/png.cpp
2011-05-01 16:54:45 +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
Johannes Schickel
b6fc71b0c5 MADE: Prefer Surface::create taking a PixelFormat over the one taking a byte depth. 2011-04-17 16:29:23 +02:00
Johannes Schickel
2078024ee4 MADE: Revert a little behavior change in setRGBPalette.
This was introduced when converting to the new RGB data setPalette call. It
should not have caused any troubles, since start is always 0 it seems, but
better be sure about this one and keep the original behavior.
2011-02-15 22:59:21 +01:00
Johannes Schickel
81111e2d59 MADE: Adapt to setPalette RGBA->RGB change.
This change is not tested. It should work just fine though, since it just
removes the RGB->RGBA conversion before calling setPalette.
2011-02-14 17:08:32 +01:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Filippos Karapetis
9717686337 MADE: Fixed bug #3087849 - "MADE: Code analysis warnings"
svn-id: r53487
2010-10-15 13:00:19 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Benjamin Haisch
dbf850999a Remove some unused struct members
svn-id: r46245
2009-12-03 19:18:47 +00:00
Benjamin Haisch
0335a37b05 Fixed clipping-related bug (bug #2826036)
svn-id: r44439
2009-09-28 07:28:20 +00:00
Benjamin Haisch
0762bb7cf6 - PMV player: Use frame count from PVM file and fix incorrect "invalid chunk type" warning
- Fix sprite drawing glitch with vertically flipped sprites (bug #2825925)

svn-id: r43521
2009-08-18 19:42:13 +00:00
Filippos Karapetis
6852080916 Merged loadRGBPalette() inside setRGBPalette() (that's the only place it's used and where the screen palette is set). Added a wrapper for copyRectToScreen(), to remove some duplicated code inside the ScreenEffects() class
svn-id: r39396
2009-03-14 15:43:37 +00:00
Filippos Karapetis
498a355a74 Reduced CPU usage of the MADE engine by about 10% (by profiling the code)
- Added delays in places where the screen gets updated
- Moved event polling inside sfPollEvent() (cause that's where events are polled), instead of after each opcode

svn-id: r39392
2009-03-14 14:58:19 +00:00
Filippos Karapetis
6225bf905f Do not update the screen while waiting
svn-id: r39390
2009-03-14 13:42:43 +00:00
Benjamin Haisch
f525575495 - Applied patch #2668849 by sunmax
svn-id: r39271
2009-03-09 18:19:53 +00:00
Benjamin Haisch
5b8105afb3 - Added support for The Manhole EGA version
- Support for 'chunked' picture resources and EGA pictures
- Improved the mouth sync in RtZ (still not perfect, though)
- Removed obsolete TODOs
- Fixed sfPlayMovie to return if the movie playback was aborted or not; this is used by RtZ to determine if it should display the credits screen after the intro movie

svn-id: r35997
2009-01-22 13:04:29 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Benjamin Haisch
a776beb2b9 Improved updateScreenAndWait; the mouse cursor is less jerky now in some scenes in Manhole:N&E
svn-id: r34638
2008-09-23 23:16:47 +00:00
Max Horn
bd296a45fa Fixed unitialized variables
svn-id: r32865
2008-07-01 10:33:25 +00:00
Benjamin Haisch
b6ad2b0035 - Fixed umlauts in printText
- Don't exit when a pmv video couldn't be found

svn-id: r32817
2008-06-27 09:57:38 +00:00
Benjamin Haisch
b9776d46b2 - Implemented opcodes: sfHomeText, sfDrawAnimPic
- Comments on unneeded opcodes
- Simplified getting/setting strings in Objects

svn-id: r32361
2008-05-29 12:57:11 +00:00
Sven Hesse
ab6c82a850 Silenced a signed/unsigned comparison warning
svn-id: r32355
2008-05-28 22:42:15 +00:00
Benjamin Haisch
df0e072a1b Fixed a crash in LGOP2 when attempting to get a sprite item from an empty array.
svn-id: r32348
2008-05-28 20:12:01 +00:00
Benjamin Haisch
aa02a6758a - Hopefully fixed 'responsiveness' of the mouse cursor/event handling
- Disabled auto dirty rects which caused major gfx problems
- Added default mouse cursor for Manhole: N&E
- Fixed sound rate for Manhole: N&E
- Don't automatically show mouse cursor when a new cursor was loaded

svn-id: r32279
2008-05-26 07:27:46 +00:00
Benjamin Haisch
4074d49844 - Moved event polling from sfPollEvent to runScript
- LGOP2: Fixed problem where Barth's gun was drawn at the wrong position

svn-id: r32205
2008-05-21 10:07:33 +00:00
Filippos Karapetis
e20abe228d Silenced an MSVC warning
svn-id: r32197
2008-05-20 18:19:32 +00:00
Filippos Karapetis
66ecacc7c3 Screen mask is now only used for V2 games
svn-id: r32147
2008-05-17 09:06:54 +00:00
Benjamin Haisch
0ec51de272 - Added some visual effects (palette fading etc.)
- Moved Screen::getAnimFrameCount directly into o1_GETFRAMECOUNT
- Renamed variables/cleanup

svn-id: r32104
2008-05-14 09:54:15 +00:00
Benjamin Haisch
16ac1bcebf Changed clipping rectangles to use Common::Rect (thanks to [md5]/thebluegr)
svn-id: r32077
2008-05-12 22:28:52 +00:00
Benjamin Haisch
f54036b6a4 Implemented o1_EXCLUDEAREA for RtZ
svn-id: r32074
2008-05-12 21:47:38 +00:00
Sven Hesse
f833cf4c61 Muting "comparing signed and unsigned values" compiler warning
svn-id: r32072
2008-05-12 20:17:54 +00:00
Benjamin Haisch
9b911cadcd Fixed printTextEx segment fault bug.
svn-id: r32071
2008-05-12 20:14:07 +00:00
Benjamin Haisch
11e6527674 Implemented o1_ADDMASK and o1_SETMASK for LGOP2
svn-id: r32066
2008-05-12 17:43:33 +00:00
Filippos Karapetis
601f0efdd4 Removed now obsolete FIXME
svn-id: r31964
2008-05-09 12:23:19 +00:00
Filippos Karapetis
a9b4058ba9 Fixed some game crashes which occurred when ProjectReader::purgeCache() got called:
- MIDI music data is marked to be deleted in o1_STOPMUS now, instead of o1_PLAYMUS. 
- Added a FIXME to Screen::setFont() - purgeCache crashes the game if the active font is deleted

svn-id: r31948
2008-05-08 13:23:02 +00:00
Benjamin Haisch
b6d2cf3553 Implemented vertical/horizontal flipping of sprites.
svn-id: r31931
2008-05-07 17:29:46 +00:00
Benjamin Haisch
7509d66caf Implemented savegame loading/saving and sprite clipping
Fixed bug in Screen::printTextEx
Implemented opcodes:
- o1_DRAWTEXT
- o1_DRAWMENU
- o1_MENUCOUNT
- o1_SAVEGAME
- o1_LOADGAME
- o1_GAMENAME

svn-id: r31794
2008-04-30 20:36:19 +00:00
Benjamin Haisch
fc6fe46951 Implemented text drawing and cleanup.
svn-id: r31756
2008-04-28 10:56:21 +00:00
Benjamin Haisch
3dc6263b17 Started work on text drawing code.
svn-id: r31719
2008-04-25 11:20:43 +00:00
Benjamin Haisch
efeb8a3193 Added (early) midi player code.
Added "screen flash" effect.
Implemented opcodes:
- o1_PLAYMUS
- o1_STOPMUS
- o1_ISMUS
- o1_FLASH
- o1_LOADSND
- o1_LOADMUS

svn-id: r31682
2008-04-23 23:22:02 +00:00
Benjamin Haisch
d0ad5867e0 Fixed palette issues when showing the inventory and the menu.
Moved drawing code from drawFlex/drawAnimFrame to drawSurface.
Implemented opcodes:
- o1_VISUALFX
- o1_SCREENLOCK
- o1_SETTIMER
- o1_SETGROUND
- o1_SETCLIP
- o1_SETEXCLUDE

svn-id: r31675
2008-04-23 20:12:06 +00:00
Filippos Karapetis
f1a27858d5 Added palette locking and some wip sound playing code. Some cleanup
svn-id: r31654
2008-04-22 07:40:28 +00:00
Filippos Karapetis
54485c24c5 Some palette related fixes
svn-id: r31650
2008-04-21 20:20:34 +00:00
Filippos Karapetis
169bf5ddba More code merge
svn-id: r31649
2008-04-21 18:46:57 +00:00
Filippos Karapetis
36bec1d5c8 Code merge
svn-id: r31648
2008-04-21 18:40:28 +00:00
Benjamin Haisch
42e8f1f882 Fixed drawAnimFrame (don't draw anything if the frame number is invalid)
svn-id: r31642
2008-04-21 11:17:51 +00:00