aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/ErrorScreen.cpp
blob: 44cb650116f70b8e998f460964425cd83e144917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "stdafx.h"
#include "ErrorScreen.h"

ErrorScreen::ErrorScreen(const wstring& title, const wstring& message)
{
    this->title = title;
    this->message = message;
}

void ErrorScreen::init()
{
}

void ErrorScreen::render(int xm, int ym, float a)
{
    //        fill(0, 0, width, height, 0x40000000);
    fillGradient(0, 0, width, height, 0xff402020, 0xff501010);

    drawCenteredString(font, title, width/2, 90, 0xffffff);
    drawCenteredString(font, message, width/2, 110, 0xffffff);

    Screen::render(xm, ym, a);
}

void ErrorScreen::keyPressed(wchar_t eventCharacter, int eventKey)
{
}