aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBorja Lorente2016-07-29 12:15:43 +0200
committerBorja Lorente2016-07-31 14:45:37 +0200
commitfafd209d04f57680c141ea34f37f3a0f59080939 (patch)
tree93e5d50c456fb34e9905df45f0683894a5db6ec8 /engines
parent638e8e99c885722b0ab2d7ee62a7f840ddea1c1a (diff)
downloadscummvm-rg350-fafd209d04f57680c141ea34f37f3a0f59080939.tar.gz
scummvm-rg350-fafd209d04f57680c141ea34f37f3a0f59080939.tar.bz2
scummvm-rg350-fafd209d04f57680c141ea34f37f3a0f59080939.zip
WAGE: Remove custom borders
Diffstat (limited to 'engines')
-rw-r--r--engines/wage/gui.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index 0f4733364a..6907679be4 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -13,7 +13,7 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-
+
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -170,7 +170,7 @@ Gui::Gui(WageEngine *engine) {
_consoleWindow->setCallback(consoleWindowCallback, this);
loadBorders();
-
+
}
Gui::~Gui() {
@@ -231,7 +231,7 @@ void Gui::drawScene() {
_scene->paint(_sceneWindow->getSurface(), 0, 0);
_sceneWindow->setDirty(true);
-
+
_sceneDirty = true;
_consoleDirty = true;
_menu->setDirty(true);
@@ -366,9 +366,10 @@ void Gui::executeMenuCommand(int action, Common::String &text) {
}
}
-void Gui::loadBorders() {
- loadBorder(_sceneWindow, "border_inac.bmp", false);
- loadBorder(_sceneWindow, "border_act.bmp", true);
+void Gui::loadBorders() {
+ // Do not load borders for now
+ //loadBorder(_sceneWindow, "border_inac.bmp", false);
+ //loadBorder(_sceneWindow, "border_act.bmp", true);
}
void Gui::loadBorder(Graphics::MacWindow *target, Common::String filename, bool active) {
@@ -394,7 +395,7 @@ void Gui::loadBorder(Graphics::MacWindow *target, Common::String filename, bool
surface->copyFrom(source);
surface->applyColorKey(255, 0, 255, false);
- target->setBorder(*surface, active);
+ target->setBorder(*surface, active, 10, 10, 1, 1);
borderfile.close();