aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorja Lorente2016-07-29 12:13:01 +0200
committerBorja Lorente2016-07-31 14:05:15 +0200
commitd49d573edc7e7c4698dac2d7748365a6e9dcef0c (patch)
treeb761856555085229329aca3c78d76a5397a4bc92
parentb6722a1477e0ae30c8429dc77f9e1381651f2603 (diff)
downloadscummvm-rg350-d49d573edc7e7c4698dac2d7748365a6e9dcef0c.tar.gz
scummvm-rg350-d49d573edc7e7c4698dac2d7748365a6e9dcef0c.tar.bz2
scummvm-rg350-d49d573edc7e7c4698dac2d7748365a6e9dcef0c.zip
WAGE: Fix border loading
-rw-r--r--engines/wage/gui.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index 0e0c034c5b..4ef2cf8d30 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -368,7 +368,7 @@ void Gui::executeMenuCommand(int action, Common::String &text) {
void Gui::loadBorders() {
Common::File borderfile;
- if (!borderfile.open("logo.bmp")) {
+ if (!borderfile.open("border.bmp")) {
debug(1, "Cannot open border file");
return;
}
@@ -379,9 +379,8 @@ void Gui::loadBorders() {
if (stream) {
bmpDecoder.loadStream(*stream);
- source = *bmpDecoder.getSurface();
+ source = *(bmpDecoder.getSurface());
source.convertToInPlace(_borders.getSupportedPixelFormat(), bmpDecoder.getPalette());
-
_borders.create(source.w, source.h, source.format);
_borders.copyFrom(source);
_borders.applyColorKey(255, 0, 255, false);