Merge Fail: Make sure we are using the interface file to get backbuffer dimensions. GL helper function was duplicated.

This commit is contained in:
Ryan Houdek 2012-12-26 13:15:19 -06:00
parent 67c1c6b062
commit 01cdcc83a3
3 changed files with 2 additions and 68 deletions

View file

@ -94,8 +94,8 @@ void SWRenderer::Prepare()
void SWRenderer::RenderText(const char* pstr, int left, int top, u32 color)
{
#ifndef USE_GLES
int nBackbufferWidth = (int)OpenGL_GetBackbufferWidth();
int nBackbufferHeight = (int)OpenGL_GetBackbufferHeight();
int nBackbufferWidth = (int)GLInterface->GetBackBufferWidth();
int nBackbufferHeight = (int)GLInterface->GetBackBufferHeight();
s_pfont->printMultilineText(pstr,
left * 2.0f / (float)nBackbufferWidth - 1,