Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
STARK: Change to use reference for the filename in the FMVWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
DouglasLiuDev committed Jun 9, 2018
1 parent 20d54d7 commit c7bc747
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/stark/ui/menu/fmvmenu.cpp
Expand Up @@ -195,7 +195,7 @@ FMVWidget::FMVWidget(Gfx::Driver *gfx, int fmvIndex) :
}

void FMVWidget::onClick() {
StarkUserInterface->requestFMVPlayback(Common::String(_filename));
StarkUserInterface->requestFMVPlayback(_filename);
}

bool FMVWidget::isMouseInside(const Common::Point &mousePos) const {
Expand Down
2 changes: 1 addition & 1 deletion engines/stark/ui/menu/fmvmenu.h
Expand Up @@ -100,7 +100,7 @@ class FMVWidget {
static const uint32 _textColorHovered = 0xFF961E1E;
static const uint32 _textColorDefault = 0xFF000000;

Common::String _filename;
const Common::String &_filename;
VisualText _title;

int _width;
Expand Down

0 comments on commit c7bc747

Please sign in to comment.