mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
WAGE: Extract MacWindow
This commit is contained in:
parent
592a6defb7
commit
744034bd98
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -10,7 +10,6 @@ MODULE_OBJS := \
|
||||
gui.o \
|
||||
gui-console.o \
|
||||
macmenu.o \
|
||||
macwindow.o \
|
||||
randomhat.o \
|
||||
saveload.o \
|
||||
script.o \
|
||||
|
@ -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) {
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -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 += \
|
||||
|
Loading…
x
Reference in New Issue
Block a user