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 {
OpenGLSSurfaceRenderer::OpenGLSSurfaceRenderer(OpenGLSDriver *gfx) :
SurfaceRenderer(),
_gfx(gfx) {
SurfaceRenderer(),
_gfx(gfx) {
_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 {
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 {
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

View File

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