WAGE: Extract MacWindow

This commit is contained in:
Borja Lorente 2016-07-29 11:45:52 +02:00
parent 592a6defb7
commit 744034bd98
10 changed files with 12 additions and 15 deletions

View File

@ -51,11 +51,11 @@
#include "graphics/cursorman.h"
#include "graphics/fonts/bdf.h"
#include "graphics/palette.h"
#include "graphics/macgui/macwindow.h"
#include "wage/wage.h"
#include "wage/design.h"
#include "wage/entities.h"
#include "wage/macwindow.h"
#include "wage/macmenu.h"
#include "wage/gui.h"
#include "wage/world.h"

View File

@ -50,12 +50,12 @@
#include "graphics/cursorman.h"
#include "graphics/primitives.h"
#include "graphics/macgui/macwindowmanager.h"
#include "graphics/macgui/macwindow.h"
#include "wage/wage.h"
#include "wage/design.h"
#include "wage/entities.h"
#include "wage/gui.h"
#include "wage/macwindow.h"
#include "wage/macmenu.h"
#include "wage/world.h"

View File

@ -52,12 +52,11 @@
#include "graphics/font.h"
#include "graphics/managed_surface.h"
#include "graphics/macgui/macwindowmanager.h"
#include "graphics/macgui/macwindow.h"
#include "common/events.h"
#include "common/rect.h"
#include "wage/macwindow.h"
namespace Wage {
class Menu;

View File

@ -51,8 +51,8 @@
#include "graphics/primitives.h"
#include "graphics/font.h"
#include "graphics/macgui/macwindowmanager.h"
#include "graphics/macgui/macwindow.h"
#include "wage/macwindow.h"
#include "wage/macmenu.h"
namespace Wage {

View File

@ -10,7 +10,6 @@ MODULE_OBJS := \
gui.o \
gui-console.o \
macmenu.o \
macwindow.o \
randomhat.o \
saveload.o \
script.o \

View File

@ -49,8 +49,7 @@
#include "graphics/primitives.h"
#include "common/events.h"
#include "graphics/macgui/macwindowmanager.h"
#include "wage/macwindow.h"
#include "graphics/macgui/macwindow.h"
namespace Graphics {
@ -264,16 +263,16 @@ void MacWindow::setHighlight(WindowClick highlightedPart) {
_highlightedPart = highlightedPart;
_borderIsDirty = true;
}
}
void MacWindow::setScroll(float scrollPos, float scrollSize) {
void MacWindow::setScroll(float scrollPos, float scrollSize) {
if (_scrollPos == scrollPos && _scrollSize == scrollSize)
return;
_scrollPos = scrollPos;
_scrollSize = scrollSize;
_borderIsDirty = true;
}
}
void MacWindow::drawBox(ManagedSurface *g, int x, int y, int w, int h) {

View File

@ -58,8 +58,8 @@
#include "graphics/palette.h"
#include "graphics/primitives.h"
#include "graphics/macgui/macwindowmanager.h"
#include "graphics/macgui/macwindow.h"
#include "wage/macwindow.h"
#include "wage/macmenu.h"
namespace Graphics {

View File

@ -54,8 +54,7 @@
#include "common/archive.h"
#include "graphics/fontman.h"
#include "engines/wage/macwindow.h"
#include "graphics/macgui/macwindow.h"
namespace Wage {
class MacWindow;

View File

@ -29,7 +29,8 @@ MODULE_OBJS := \
VectorRendererSpec.o \
wincursor.o \
yuv_to_rgb.o \
macgui/macwindowmanager.o
macgui/macwindowmanager.o\
macgui/macwindow.o
ifdef USE_SCALERS
MODULE_OBJS += \