2007-08-21 16:48:18 +03:00
|
|
|
#include "stdafx.h"
|
|
|
|
#include "CScreenHandler.h"
|
|
|
|
#include "SDL.h"
|
|
|
|
#include "SDL_thread.h"
|
|
|
|
#include "SDL_framerate.h"
|
|
|
|
#include "SDL_Extensions.h"
|
2007-08-29 15:18:31 +03:00
|
|
|
#include "CCursorHandler.h"
|
2007-08-21 16:48:18 +03:00
|
|
|
#include "CGameInfo.h"
|
2007-08-30 13:11:53 +03:00
|
|
|
#include "hch\CDefHandler.h"
|
2007-08-21 16:48:18 +03:00
|
|
|
|
|
|
|
extern SDL_Surface * screen, * screen2;
|
|
|
|
|
|
|
|
void CScreenHandler::initScreen()
|
|
|
|
{
|
|
|
|
//myth = SDL_CreateThread(&internalScreenFunc, this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CScreenHandler::updateScreen()
|
|
|
|
{
|
2007-12-06 20:55:58 +02:00
|
|
|
/*blitAt(screen, 0, 0, screen2);
|
2007-08-21 16:48:18 +03:00
|
|
|
switch(CGI->curh->mode)
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
{
|
|
|
|
blitAt(CGI->curh->adventure->ourImages[CGI->curh->number].bitmap, CGI->curh->xpos, CGI->curh->ypos, screen2);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 1:
|
|
|
|
{
|
|
|
|
blitAt(CGI->curh->combat->ourImages[CGI->curh->number].bitmap, CGI->curh->xpos, CGI->curh->ypos, screen2);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
{
|
|
|
|
blitAt(CGI->curh->deflt->ourImages[CGI->curh->number].bitmap, CGI->curh->xpos, CGI->curh->ypos, screen2);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
{
|
|
|
|
blitAt(CGI->curh->spell->ourImages[CGI->curh->number].bitmap, CGI->curh->xpos, CGI->curh->ypos, screen2);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2007-12-06 20:55:58 +02:00
|
|
|
CSDL_Ext::update(screen2);*/
|
2007-08-21 16:48:18 +03:00
|
|
|
}
|