STARK: formatting white spaces

This commit is contained in:
Pawel Kolodziejski 2015-12-25 09:59:55 +01:00 committed by Bastien Bouclet
parent 363a91267b
commit fd0dbeb6ff
2 changed files with 6 additions and 8 deletions

View file

@ -31,8 +31,8 @@ namespace Stark {
namespace Gfx { namespace Gfx {
OpenGLSSurfaceRenderer::OpenGLSSurfaceRenderer(OpenGLSDriver *gfx) : OpenGLSSurfaceRenderer::OpenGLSSurfaceRenderer(OpenGLSDriver *gfx) :
SurfaceRenderer(), SurfaceRenderer(),
_gfx(gfx) { _gfx(gfx) {
_shader = _gfx->createSurfaceShaderInstance(); _shader = _gfx->createSurfaceShaderInstance();
} }
@ -66,12 +66,12 @@ void OpenGLSSurfaceRenderer::render(const Texture *texture, const Common::Point
Math::Vector2d OpenGLSSurfaceRenderer::normalizeOriginalCoordinates(float x, float y) const { Math::Vector2d OpenGLSSurfaceRenderer::normalizeOriginalCoordinates(float x, float y) const {
Common::Rect viewport = _gfx->getUnscaledViewport(); Common::Rect viewport = _gfx->getUnscaledViewport();
return Math::Vector2d(x / (float) viewport.width(), y / (float) viewport.height()); return Math::Vector2d(x / (float)viewport.width(), y / (float)viewport.height());
} }
Math::Vector2d OpenGLSSurfaceRenderer::normalizeCurrentCoordinates(float x, float y) const { Math::Vector2d OpenGLSSurfaceRenderer::normalizeCurrentCoordinates(float x, float y) const {
Common::Rect viewport = _gfx->getViewport(); Common::Rect viewport = _gfx->getViewport();
return Math::Vector2d(x / (float) viewport.width(), y / (float) viewport.height()); return Math::Vector2d(x / (float)viewport.width(), y / (float)viewport.height());
} }
} // End of namespace Gfx } // End of namespace Gfx

View file

@ -26,13 +26,11 @@ namespace Stark {
namespace Gfx { namespace Gfx {
SurfaceRenderer::SurfaceRenderer() : SurfaceRenderer::SurfaceRenderer() :
_noScalingOverride(false), _noScalingOverride(false),
_fadeLevel(0) { _fadeLevel(0) {
} }
SurfaceRenderer::~SurfaceRenderer() { SurfaceRenderer::~SurfaceRenderer() {
} }
void SurfaceRenderer::setNoScalingOverride(bool noScalingOverride) { void SurfaceRenderer::setNoScalingOverride(bool noScalingOverride) {