Skip to content

Commit

Permalink
MORTEVIELLE: some renaming in Dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Aug 18, 2013
1 parent c8f7583 commit c981c52
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions engines/mortevielle/dialogs.cpp
Expand Up @@ -57,13 +57,12 @@ int DialogManager::show(const Common::String &msg, int n) {

decodeAlertDetails(msg, caseNumb, lignNumb, colNumb, alertStr, caseStr);

int i = 0;
Common::Point curPos;
if (alertStr == "") {
drawAlertBox(10, 5, colNumb);
} else {
drawAlertBox(8, 7, colNumb);
i = 0;
int i = 0;
_vm->_screenSurface._textPos.y = 70;
do {
curPos.x = 320;
Expand Down Expand Up @@ -229,13 +228,13 @@ void DialogManager::setPosition(int ji, int coldep, int esp) {
* Alert function - Draw Alert Box
* @remarks Originally called 'fait_boite'
*/
void DialogManager::drawAlertBox(int lidep, int nli, int tx) {
if (tx > 640)
tx = 640;
int x = 320 - ((uint)tx / 2);
int y = (lidep - 1) * 8;
int xx = x + tx;
int yy = y + (nli * 8);
void DialogManager::drawAlertBox(int firstLine, int lineNum, int width) {
if (width > 640)
width = 640;
int x = 320 - ((uint)width / 2);
int y = (firstLine - 1) * 8;
int xx = x + width;
int yy = y + (lineNum * 8);
_vm->_screenSurface.fillRect(15, Common::Rect(x, y, xx, yy));
_vm->_screenSurface.fillRect(0, Common::Rect(x, y + 2, xx, y + 4));
_vm->_screenSurface.fillRect(0, Common::Rect(x, yy - 4, xx, yy - 2));
Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/dialogs.h
Expand Up @@ -48,7 +48,7 @@ class DialogManager {

void decodeAlertDetails(Common::String inputStr, int &choiceNumb, int &lineNumb, int &col, Common::String &choiceStr, Common::String &choiceListStr);
void setPosition(int ji, int coldep, int esp);
void drawAlertBox(int lidep, int nli, int tx);
void drawAlertBox(int firstLine, int lineNum, int width);
void setButtonText(Common::String c, int coldep, int nbcase, Common::String *str, int esp);
public:
void setParent(MortevielleEngine *vm);
Expand Down

0 comments on commit c981c52

Please sign in to comment.