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 Jul 27, 2015
1 parent 543f655 commit 24818c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 6 additions & 3 deletions engines/sherlock/tattoo/widget_files.cpp
Expand Up @@ -106,7 +106,7 @@ void WidgetFiles::render(FilesRenderMode mode) {
ImageFile &images = *ui._interfaceImages;
byte color;

if (mode == OP_ALL) {
if (mode == RENDER_ALL) {
_surface.fill(TRANSPARENCY);
makeInfoArea();

Expand Down Expand Up @@ -144,7 +144,7 @@ void WidgetFiles::render(FilesRenderMode mode) {

for (int idx = _savegameIndex; idx < (_savegameIndex + FILES_LINES_COUNT); ++idx) {
if (OP_NAMES || idx == _selector || idx == _oldSelector) {
if (idx == _selector && mode != OP_ALL)
if (idx == _selector && mode != RENDER_ALL)
color = COMMAND_HIGHLIGHTED;
else
color = INFO_TOP;
Expand Down Expand Up @@ -230,7 +230,7 @@ void WidgetFiles::handleEvents() {
_outsideMenu = false;

if (_selector != -1) {
if (_fileMode = SAVEMODE_LOAD) {
if (_fileMode == SAVEMODE_LOAD) {
// We're in Load Mode
_vm->loadGameState(_selector);
} else if (_fileMode == SAVEMODE_SAVE) {
Expand Down Expand Up @@ -364,6 +364,9 @@ bool WidgetFiles::getFilename() {
--index;
}
break;

default:
break;
}
} else if (keyState.keycode == Common::KEYCODE_INSERT) {
insert = !insert;
Expand Down
2 changes: 0 additions & 2 deletions engines/sherlock/tattoo/widget_options.cpp
Expand Up @@ -239,11 +239,9 @@ void WidgetOptions::handleEvents() {

void WidgetOptions::render(OptionRenderMode mode) {
TattooEngine &vm = *(TattooEngine *)_vm;
Events &events = *_vm->_events;
Music &music = *_vm->_music;
Sound &sound = *_vm->_sound;
TattooUserInterface &ui = *(TattooUserInterface *)_vm->_ui;
Common::Point mousePos = events.mousePos();
ImageFile &images = *ui._interfaceImages;
const char *const OFF_ON[2] = { FIXED(Off), FIXED(On) };

Expand Down

0 comments on commit 24818c1

Please sign in to comment.