mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
* border around battle interface when not 800x600
This commit is contained in:
@@ -7,7 +7,8 @@
|
|||||||
#include "hch/CObjectHandler.h"
|
#include "hch/CObjectHandler.h"
|
||||||
#include "hch/CHeroHandler.h"
|
#include "hch/CHeroHandler.h"
|
||||||
#include "hch/CDefHandler.h"
|
#include "hch/CDefHandler.h"
|
||||||
#include "hch/CSpellHandler.h"
|
#include "hch/CSpellHandler.h"
|
||||||
|
#include "CMessage.h"
|
||||||
#include "CCursorHandler.h"
|
#include "CCursorHandler.h"
|
||||||
#include "CCallback.h"
|
#include "CCallback.h"
|
||||||
#include "CGameState.h"
|
#include "CGameState.h"
|
||||||
@@ -564,7 +565,12 @@ void CBattleInterface::show(SDL_Surface * to)
|
|||||||
{
|
{
|
||||||
resWindow->show(to);
|
resWindow->show(to);
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_SetClipRect(to, &buf); //restoring previous clip_rect
|
SDL_SetClipRect(to, &buf); //restoring previous clip_rect
|
||||||
|
|
||||||
|
//printing border around interface
|
||||||
|
if(screen->w != 800 || screen->h !=600)
|
||||||
|
CMessage::drawBorder(LOCPLINT->playerID,to,828,628,pos.x-14,pos.y-15);
|
||||||
}
|
}
|
||||||
void CBattleInterface::keyPressed(const SDL_KeyboardEvent & key)
|
void CBattleInterface::keyPressed(const SDL_KeyboardEvent & key)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user