Skip to content

Commit

Permalink
Moved common/scaler* to graphics/
Browse files Browse the repository at this point in the history
svn-id: r20797
  • Loading branch information
fingolfin committed Feb 20, 2006
1 parent 6160a17 commit 7335d34
Show file tree
Hide file tree
Showing 24 changed files with 38 additions and 40 deletions.
3 changes: 0 additions & 3 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ General
reachable :-)
* Some source files should be moved. But that's a pain with CVS, so let's
wait until we switch to something better, like Subversion. In particular:
- common/scaler* stuff should either be moved to graphics/, or maybe
to backends/ (while it is portable code, it's something to be used by
the backends only)
- consider moving the MIDI stuff from sound/ to sound/midi/
- move fmopl code to softsynth dir
- move fonts to graphics/fonts/ dir
Expand Down
2 changes: 1 addition & 1 deletion backends/sdl/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
*/

#include "backends/sdl/sdl-common.h"
#include "common/scaler.h"
#include "common/util.h"
#include "graphics/font.h"
#include "graphics/fontman.h"
#include "graphics/scaler.h"
#include "graphics/surface.h"

static const OSystem::GraphicsMode s_supportedGraphicsModes[] = {
Expand Down
2 changes: 1 addition & 1 deletion backends/sdl/sdl-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

#include "common/stdafx.h"
#include "common/scummsys.h"
#include "common/scaler.h"
#include "common/system.h"
#include "graphics/scaler.h"
#include "backends/intern.h"

#include <SDL.h>
Expand Down
28 changes: 1 addition & 27 deletions common/module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,10 @@ MODULE_OBJS := \
util.o \
savefile.o \
system.o \
scaler.o \
scaler/thumbnail.o \
unzip.o

ifndef DISABLE_SCALERS
MODULE_OBJS += \
scaler/2xsai.o \
scaler/aspect.o \
scaler/scale2x.o \
scaler/scale3x.o \
scaler/scalebit.o

ifndef DISABLE_HQ_SCALERS
MODULE_OBJS += \
scaler/hq2x.o \
scaler/hq3x.o

ifdef HAVE_NASM
MODULE_OBJS += \
scaler/hq2x_i386.o \
scaler/hq3x_i386.o
endif

endif

endif

MODULE_DIRS += \
common \
common/scaler
common

# Include common rules
include $(srcdir)/common.rules
3 changes: 2 additions & 1 deletion engines/scumm/dialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
#include "common/config-manager.h"
#include "common/savefile.h"
#include "common/system.h"
#include "common/scaler.h"

#include "graphics/scaler.h"

#include "gui/about.h"
#include "gui/chooser.h"
Expand Down
36 changes: 31 additions & 5 deletions graphics/module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,42 @@ MODULE_OBJS := \
font.o \
fontman.o \
ilbm.o \
newfont.o \
imagedec.o \
imageman.o \
newfont_big.o \
newfont.o \
primitives.o \
scaler.o \
scaler/thumbnail.o \
scummfont.o \
surface.o \
imageman.o \
imagedec.o
surface.o

ifndef DISABLE_SCALERS
MODULE_OBJS += \
scaler/2xsai.o \
scaler/aspect.o \
scaler/scale2x.o \
scaler/scale3x.o \
scaler/scalebit.o

ifndef DISABLE_HQ_SCALERS
MODULE_OBJS += \
scaler/hq2x.o \
scaler/hq3x.o

ifdef HAVE_NASM
MODULE_OBJS += \
scaler/hq2x_i386.o \
scaler/hq3x_i386.o
endif

endif

endif

MODULE_DIRS += \
graphics
graphics \
graphics/scaler

# Include common rules
include $(srcdir)/common.rules
4 changes: 2 additions & 2 deletions common/scaler.cpp → graphics/scaler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
*
*/

#include "common/scaler/intern.h"
#include "common/scaler/scalebit.h"
#include "graphics/scaler/intern.h"
#include "graphics/scaler/scalebit.h"
#include "common/util.h"


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7335d34

Please sign in to comment.