Skip to content

Commit

Permalink
ZVISION: Remove superfluous spacing and reorder some includes
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Dec 2, 2014
1 parent 7976a34 commit 2a4a6df
Show file tree
Hide file tree
Showing 80 changed files with 5 additions and 136 deletions.
1 change: 0 additions & 1 deletion engines/zvision/animation/meta_animation.cpp
Expand Up @@ -34,7 +34,6 @@

#include "graphics/surface.h"


namespace ZVision {

MetaAnimation::MetaAnimation(const Common::String &fileName, ZVision *engine)
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/animation/meta_animation.h
Expand Up @@ -28,7 +28,6 @@
#include "common/rect.h"
#include "common/list.h"


namespace Common {
class String;
}
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/animation/rlf_animation.cpp
Expand Up @@ -32,7 +32,6 @@

#include "graphics/colormasks.h"


namespace ZVision {

RlfAnimation::RlfAnimation(const Common::String &fileName, bool stream)
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/animation/rlf_animation.h
Expand Up @@ -27,7 +27,6 @@

#include "graphics/surface.h"


namespace Common {
class String;
}
Expand Down
2 changes: 0 additions & 2 deletions engines/zvision/archives/zfs_archive.cpp
Expand Up @@ -153,5 +153,3 @@ void ZfsArchive::unXor(byte *buffer, uint32 length, const byte *xorKey) const {
}

} // End of namespace ZVision


1 change: 0 additions & 1 deletion engines/zvision/archives/zfs_archive.h
Expand Up @@ -27,7 +27,6 @@
#include "common/hashmap.h"
#include "common/hash-str.h"


namespace Common {
class String;
}
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/core/console.cpp
Expand Up @@ -41,7 +41,6 @@

#include "audio/mixer.h"


namespace ZVision {

Console::Console(ZVision *engine) : GUI::Debugger(), _engine(engine) {
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/core/events.cpp
Expand Up @@ -40,7 +40,6 @@

#include "engines/util.h"


namespace ZVision {

void ZVision::shortKeys(Common::Event event) {
Expand Down
4 changes: 0 additions & 4 deletions engines/zvision/core/menu.cpp
Expand Up @@ -26,7 +26,6 @@

#include "zvision/graphics/render_manager.h"


namespace ZVision {

enum {
Expand Down Expand Up @@ -380,7 +379,6 @@ void MenuZGI::process(uint32 deltatime) {
else if (itemCount > 50)
itemCount = 50;


for (int i = 0; i < itemCount; i++) {
int itemspace = (600 - 28) / itemCount;

Expand Down Expand Up @@ -553,7 +551,6 @@ void MenuZGI::process(uint32 deltatime) {
}
}


MenuNemesis::MenuNemesis(ZVision *engine) :
MenuHandler(engine) {
inmenu = false;
Expand Down Expand Up @@ -761,5 +758,4 @@ void MenuNemesis::process(uint32 deltatime) {
}
}


} // End of namespace ZVision
2 changes: 0 additions & 2 deletions engines/zvision/core/menu.h
Expand Up @@ -70,8 +70,6 @@ class MenuZGI: public MenuHandler {
private:
Graphics::Surface menuback[3][2];
Graphics::Surface menubar[4][2];


Graphics::Surface *items[50][2];
uint itemId[50];

Expand Down
1 change: 0 additions & 1 deletion engines/zvision/core/save_manager.cpp
Expand Up @@ -35,7 +35,6 @@

#include "gui/message.h"


namespace ZVision {

const uint32 SaveManager::SAVEGAME_ID = MKTAG('Z', 'E', 'N', 'G');
Expand Down
2 changes: 0 additions & 2 deletions engines/zvision/core/search_manager.cpp
Expand Up @@ -27,7 +27,6 @@
#include "common/fs.h"
#include "common/stream.h"


namespace ZVision {

SearchManager::SearchManager(const Common::String &rootPath, int depth) {
Expand Down Expand Up @@ -237,7 +236,6 @@ void SearchManager::addDir(const Common::String &name) {
Common::ArchiveMemberList list;
dir->listMatchingMembers(list, "*.zfs");


for (Common::ArchiveMemberList::iterator iter = list.begin(); iter != list.end(); ++iter) {
Common::String flname = (*iter)->getName();

Expand Down
1 change: 0 additions & 1 deletion engines/zvision/cursors/cursor.cpp
Expand Up @@ -27,7 +27,6 @@
#include "common/str.h"
#include "common/file.h"


namespace ZVision {

ZorkCursor::ZorkCursor()
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/cursors/cursor.h
Expand Up @@ -26,7 +26,6 @@
#include "graphics/surface.h"
#include "zvision/zvision.h"


namespace Common {
class String;
}
Expand Down
2 changes: 0 additions & 2 deletions engines/zvision/cursors/cursor_manager.cpp
Expand Up @@ -31,7 +31,6 @@
#include "graphics/pixelformat.h"
#include "graphics/cursorman.h"


namespace ZVision {

const char *CursorManager::_cursorNames[NUM_CURSORS] = { "active", "arrow", "backward", "downarrow", "forward", "handpt", "handpu", "hdown", "hleft",
Expand All @@ -46,7 +45,6 @@ const char *CursorManager::_zNemCursorFileNames[NUM_CURSORS] = { "00act", "arrow
"hright", "hup", "00idle", "left", "right", "ssurr", "stilt", "turn", "up"
};


CursorManager::CursorManager(ZVision *engine, const Graphics::PixelFormat *pixelFormat)
: _engine(engine),
_pixelFormat(pixelFormat),
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/cursors/cursor_manager.h
Expand Up @@ -27,7 +27,6 @@

#include "common/str.h"


namespace Graphics {
struct PixelFormat;
}
Expand Down
3 changes: 0 additions & 3 deletions engines/zvision/detection.cpp
Expand Up @@ -32,7 +32,6 @@
#include "common/str-array.h"
#include "common/system.h"


namespace ZVision {

uint32 ZVision::getFeatures() const {
Expand All @@ -45,15 +44,13 @@ Common::Language ZVision::getLanguage() const {

} // End of namespace ZVision


static const PlainGameDescriptor zVisionGames[] = {
{"zvision", "ZVision Game"},
{"znemesis", "Zork Nemesis: The Forbidden Lands"},
{"zgi", "Zork: Grand Inquisitor"},
{0, 0}
};


namespace ZVision {

static const ZVisionGameDescription gameDescriptions[] = {
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/detection.h
Expand Up @@ -25,7 +25,6 @@

#include "engines/advancedDetector.h"


namespace ZVision {

enum ZVisionGameId {
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/fonts/truetype_font.cpp
Expand Up @@ -37,7 +37,6 @@
#include "graphics/fonts/ttf.h"
#include "graphics/surface.h"


namespace ZVision {

TruetypeFont::TruetypeFont(ZVision *engine, int32 fontHeight)
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/fonts/truetype_font.h
Expand Up @@ -28,7 +28,6 @@
#include "graphics/font.h"
#include "graphics/pixelformat.h"


namespace Graphics {
struct Surface;
}
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/graphics/effects/fog.cpp
Expand Up @@ -28,7 +28,6 @@
#include "zvision/graphics/render_manager.h"
#include "zvision/scripting/script_manager.h"


namespace ZVision {

FogFx::FogFx(ZVision *engine, uint32 key, Common::Rect region, bool ported, EffectMap *Map, const Common::String &clouds):
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/graphics/effects/light.cpp
Expand Up @@ -27,7 +27,6 @@
#include "zvision/zvision.h"
#include "zvision/graphics/render_manager.h"


namespace ZVision {

LightFx::LightFx(ZVision *engine, uint32 key, Common::Rect region, bool ported, EffectMap *Map, int8 delta, int8 minD, int8 maxD):
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/graphics/effects/wave.cpp
Expand Up @@ -27,7 +27,6 @@
#include "zvision/zvision.h"
#include "zvision/graphics/render_manager.h"


namespace ZVision {

WaveFx::WaveFx(ZVision *engine, uint32 key, Common::Rect region, bool ported, int16 frames, int16 centerX, int16 centerY, float ampl, float waveln, float spd):
Expand Down
4 changes: 0 additions & 4 deletions engines/zvision/graphics/render_manager.cpp
Expand Up @@ -37,7 +37,6 @@

#include "image/tga.h"


namespace ZVision {

RenderManager::RenderManager(ZVision *engine, uint32 windowWidth, uint32 windowHeight, const Common::Rect workingWindow, const Graphics::PixelFormat pixelFormat)
Expand Down Expand Up @@ -122,7 +121,6 @@ void RenderManager::renderBackbufferToScreen() {
outWndDirtyRect = _wrkWndDirtyRect;
}


if (!outWndDirtyRect.isEmpty()) {
_system->copyRectToScreen(out->getBasePtr(outWndDirtyRect.left, outWndDirtyRect.top), out->pitch,
outWndDirtyRect.left + _workingWindow.left,
Expand Down Expand Up @@ -511,8 +509,6 @@ void RenderManager::blitSurfaceToSurface(const Graphics::Surface &src, const Com
if (srcRect.isEmpty() || !srcRect.isValidRect())
return;



uint32 _keycolor = colorkey & ((1 << (src.format.bytesPerPixel << 3)) - 1);

// Copy srcRect from src surface to dst surface
Expand Down
3 changes: 0 additions & 3 deletions engines/zvision/graphics/render_manager.h
Expand Up @@ -33,7 +33,6 @@

#include "effect.h"


class OSystem;

namespace Common {
Expand Down Expand Up @@ -92,7 +91,6 @@ class RenderManager {
// A buffer used for apply graphics effects
Graphics::Surface _effectWnd;


/** Width of the working window. Saved to prevent extraneous calls to _workingWindow.width() */
const int _wrkWidth;
/** Height of the working window. Saved to prevent extraneous calls to _workingWindow.height() */
Expand Down Expand Up @@ -256,7 +254,6 @@ class RenderManager {
// Processing subtitles
void processSubs(uint16 deltatime);


// Return background size
Common::Point getBkgSize();

Expand Down
4 changes: 0 additions & 4 deletions engines/zvision/graphics/render_table.cpp
Expand Up @@ -21,14 +21,10 @@
*/

#include "common/scummsys.h"

#include "zvision/graphics/render_table.h"

#include "common/rect.h"

#include "graphics/colormasks.h"


namespace ZVision {

RenderTable::RenderTable(uint numColumns, uint numRows)
Expand Down
1 change: 0 additions & 1 deletion engines/zvision/graphics/render_table.h
Expand Up @@ -26,7 +26,6 @@
#include "common/rect.h"
#include "graphics/surface.h"


namespace ZVision {

class RenderTable {
Expand Down

0 comments on commit 2a4a6df

Please sign in to comment.