diff --git a/graphics/tinygl/zblit.cpp b/graphics/tinygl/zblit.cpp index a2db020e27a..8acf10de8d1 100644 --- a/graphics/tinygl/zblit.cpp +++ b/graphics/tinygl/zblit.cpp @@ -194,6 +194,11 @@ public: Graphics::Surface _surface; }; +void tglGetBlitImageSize(BlitImage *blitImage, int &width, int &height) { + width = blitImage->_surface.w; + height = blitImage->_surface.h; +} + BlitImage *tglGenBlitImage() { TinyGL::GLContext *c = TinyGL::gl_get_context(); BlitImage *image = new BlitImage(); diff --git a/graphics/tinygl/zblit.h b/graphics/tinygl/zblit.h index c226b41dde1..61abdbfcf1b 100644 --- a/graphics/tinygl/zblit.h +++ b/graphics/tinygl/zblit.h @@ -78,6 +78,7 @@ struct BlitImage; BlitImage *tglGenBlitImage(); void tglUploadBlitImage(BlitImage *blitImage, const Graphics::Surface &surface, uint32 colorKey, bool applyColorKey); void tglDeleteBlitImage(BlitImage *blitImage); +void tglGetBlitImageSize(BlitImage *blitImage, int &width, int &height); void tglBlit(BlitImage *blitImage, const BlitTransform &transform); void tglBlit(BlitImage *blitImage, int x, int y);