From 080900e5535e9805a1f6dd3442bacdb5ef98f26d Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Thu, 26 Mar 2015 23:06:31 +0600 Subject: [PATCH] Remove redundant calls to video() functions in FrameBuffer::_initTexture --- FrameBuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FrameBuffer.cpp b/FrameBuffer.cpp index 3af0b949..685124c2 100644 --- a/FrameBuffer.cpp +++ b/FrameBuffer.cpp @@ -134,8 +134,8 @@ FrameBuffer::~FrameBuffer() void FrameBuffer::_initTexture(u16 _format, u16 _size, CachedTexture *_pTexture) { - _pTexture->width = (u32)(m_width * video().getScaleX()); - _pTexture->height = (u32)(m_height * video().getScaleY()); + _pTexture->width = (u32)(m_width * m_scaleX); + _pTexture->height = (u32)(m_height * m_scaleY); _pTexture->format = _format; _pTexture->size = _size; _pTexture->clampS = 1;