X-Git-Url: https://git.ucc.asn.au/?p=progcomp2012.git;a=blobdiff_plain;f=judge%2Fmanager%2Fgraphics.cpp;h=7cc22d0a495237de04994ea3af01aff23682d1bc;hp=5b708df75ab0b5edf833db1b455e6388737e8d33;hb=341297b4dce9528d54fe9dceeff0d6dc33f70abe;hpb=1a03b2543b67f0551e62babec4cd119f1e0e4640 diff --git a/judge/manager/graphics.cpp b/judge/manager/graphics.cpp index 5b708df..7cc22d0 100644 --- a/judge/manager/graphics.cpp +++ b/judge/manager/graphics.cpp @@ -3,6 +3,7 @@ #include #include +#ifdef BUILD_GRAPHICS #undef DEBUG //#define DEBUG @@ -127,6 +128,7 @@ void Texture::Draw(int x, int y, double angle , double scale ) } + Font::Font(const char * filename, int newWidth, int newHeight) : Texture(filename), width(newWidth), height(newHeight) { @@ -442,8 +444,9 @@ Colour Graphics::ConvertColour(Uint8 from) return result; } +void Graphics::Wait(int n) +{ + SDL_Delay(n); +} - - - - +#endif //BUILD_GRAPHICS