Skip to content

Commit

Permalink
SHERLOCK: RT: Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jun 26, 2015
1 parent 92ac962 commit 27673db
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions engines/sherlock/scalpel/scalpel.h
Expand Up @@ -31,6 +31,7 @@ namespace Sherlock {
namespace Scalpel {

enum {
COMMAND_FOREGROUND = 15,
COMMAND_HIGHLIGHTED = 10,
COMMAND_NULL = 248
};
Expand Down
1 change: 0 additions & 1 deletion engines/sherlock/screen.h
Expand Up @@ -44,7 +44,6 @@ enum {
BORDER_COLOR = 237,
INV_FOREGROUND = 14,
INV_BACKGROUND = 1,
COMMAND_FOREGROUND = 15,
COMMAND_BACKGROUND = 4,
BUTTON_TOP = 233,
BUTTON_MIDDLE = 244,
Expand Down
1 change: 1 addition & 0 deletions engines/sherlock/tattoo/tattoo.h
Expand Up @@ -34,6 +34,7 @@ enum {
INFO_MIDDLE = 186,
INFO_BOTTOM = 188,
MENU_BACKGROUND = 225,
COMMAND_FOREGROUND = 15,
COMMAND_HIGHLIGHTED = 254,
COMMAND_NULL = 193

Expand Down
3 changes: 0 additions & 3 deletions engines/sherlock/tattoo/tattoo_journal.cpp
Expand Up @@ -81,7 +81,6 @@ void TattooJournal::show() {

do {
events.pollEventsAndWait();
Common::Point mousePos = events.mousePos();
_wait = true;

handleKeyboardEvents();
Expand Down Expand Up @@ -631,10 +630,8 @@ void TattooJournal::highlightSearchControls(bool slamIt) {
}

void TattooJournal::drawScrollBar() {
Events &events = *_vm->_events;
Screen &screen = *_vm->_screen;
TattooUserInterface &ui = *(TattooUserInterface *)_vm->_ui;
Common::Point mousePos = events.mousePos();
bool raised;
byte color;

Expand Down
3 changes: 0 additions & 3 deletions engines/sherlock/tattoo/tattoo_user_interface.cpp
Expand Up @@ -586,9 +586,6 @@ void TattooUserInterface::freeMenu() {
}

void TattooUserInterface::putMessage(const char *formatStr, ...) {
Events &events = *_vm->_events;
Common::Point mousePos = events.mousePos();

// Create the string to display
va_list args;
va_start(args, formatStr);
Expand Down
2 changes: 1 addition & 1 deletion engines/sherlock/tattoo/widget_base.cpp
Expand Up @@ -142,7 +142,7 @@ Common::String WidgetBase::splitLines(const Common::String &str, Common::StringA
// Move the string ahead to the next line
if (*strP == ' ' || *strP == 13)
++strP;
} while (*strP && ((int)lines.size() < maxLines) && ((byte)*strP < talk._opcodes[OP_SWITCH_SPEAKER]
} while (*strP && (lines.size() < maxLines) && ((byte)*strP < talk._opcodes[OP_SWITCH_SPEAKER]
|| (byte)*strP == talk._opcodes[OP_NULL]));

// Return any remaining text left over
Expand Down

0 comments on commit 27673db

Please sign in to comment.