Temporarily disable the status bar in IHNM. The only place where we drew it
so far, it shouldn't be drawn. Eventually we could probably handle this with yet another panel mode: no panel at all. svn-id: r15882
This commit is contained in:
parent
7c43635212
commit
03c32f05b0
2 changed files with 9 additions and 9 deletions
|
@ -322,7 +322,6 @@ int Interface::draw() {
|
||||||
int rportrait_x;
|
int rportrait_x;
|
||||||
int rportrait_y;
|
int rportrait_y;
|
||||||
|
|
||||||
Rect rect;
|
|
||||||
Point origin;
|
Point origin;
|
||||||
|
|
||||||
back_buf = _vm->_gfx->getBackBuffer();
|
back_buf = _vm->_gfx->getBackBuffer();
|
||||||
|
@ -334,13 +333,7 @@ int Interface::draw() {
|
||||||
// Get game display info
|
// Get game display info
|
||||||
GAME_GetDisplayInfo(&g_di);
|
GAME_GetDisplayInfo(&g_di);
|
||||||
|
|
||||||
// Erase background of status bar
|
drawStatusBar(back_buf);
|
||||||
rect.left = 0;
|
|
||||||
rect.top = _iDesc.status_y;
|
|
||||||
rect.right = g_di.logical_w;
|
|
||||||
rect.bottom = _iDesc.status_y + _iDesc.status_h;
|
|
||||||
|
|
||||||
drawRect(back_buf, &rect, _iDesc.status_bgcol);
|
|
||||||
|
|
||||||
// Draw command panel background
|
// Draw command panel background
|
||||||
if (_panelMode == kPanelCommand) {
|
if (_panelMode == kPanelCommand) {
|
||||||
|
@ -430,6 +423,13 @@ int Interface::drawStatusBar(SURFACE *ds) {
|
||||||
|
|
||||||
int string_w;
|
int string_w;
|
||||||
|
|
||||||
|
// Disable this for IHNM for now, since that game uses the full screen
|
||||||
|
// in some cases.
|
||||||
|
|
||||||
|
if (GAME_GetGameType() == GID_IHNM) {
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
// Get game display info
|
// Get game display info
|
||||||
GAME_GetDisplayInfo(&g_di);
|
GAME_GetDisplayInfo(&g_di);
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ enum INTERFACE_UPDATE_FLAGS {
|
||||||
#define IHNM_STATUS_H 24
|
#define IHNM_STATUS_H 24
|
||||||
#define IHNM_STATUS_TEXT_Y 8
|
#define IHNM_STATUS_TEXT_Y 8
|
||||||
#define IHNM_STATUS_TXTCOL 186
|
#define IHNM_STATUS_TXTCOL 186
|
||||||
#define IHNM_STATUS_BGCOL 0
|
#define IHNM_STATUS_BGCOL 11
|
||||||
|
|
||||||
#define IHNM_CMD_TEXT_COL 147
|
#define IHNM_CMD_TEXT_COL 147
|
||||||
#define IHNM_CMD_TEXT_SHADOWCOL 15
|
#define IHNM_CMD_TEXT_SHADOWCOL 15
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue