GRIM: Fixed formatting.
This commit is contained in:
parent
8b283945e4
commit
2c5bfd586e
2 changed files with 3 additions and 7 deletions
|
@ -609,8 +609,7 @@ void GfxOpenGL::drawSprite(const Sprite *sprite) {
|
||||||
glTexCoord2f(1.0f, 1.0f);
|
glTexCoord2f(1.0f, 1.0f);
|
||||||
glVertex3f(+halfWidth, -halfHeight, 0.0f);
|
glVertex3f(+halfWidth, -halfHeight, 0.0f);
|
||||||
glEnd();
|
glEnd();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// In Grim, the bottom edge of the sprite is at y=0 and
|
// In Grim, the bottom edge of the sprite is at y=0 and
|
||||||
// the texture is flipped along the X-axis.
|
// the texture is flipped along the X-axis.
|
||||||
float halfWidth = (sprite->_width / 2) * _scaleW;
|
float halfWidth = (sprite->_width / 2) * _scaleW;
|
||||||
|
|
|
@ -685,8 +685,7 @@ void GfxTinyGL::drawSprite(const Sprite *sprite) {
|
||||||
|
|
||||||
tglDisable(TGL_LIGHTING);
|
tglDisable(TGL_LIGHTING);
|
||||||
|
|
||||||
if (g_grim->getGameType() == GType_MONKEY4)
|
if (g_grim->getGameType() == GType_MONKEY4) {
|
||||||
{
|
|
||||||
float halfWidth = (sprite->_width / 2) * _scaleW;
|
float halfWidth = (sprite->_width / 2) * _scaleW;
|
||||||
float halfHeight = (sprite->_height / 2) * _scaleH;
|
float halfHeight = (sprite->_height / 2) * _scaleH;
|
||||||
|
|
||||||
|
@ -700,9 +699,7 @@ void GfxTinyGL::drawSprite(const Sprite *sprite) {
|
||||||
tglTexCoord2f(1.0f, 1.0f);
|
tglTexCoord2f(1.0f, 1.0f);
|
||||||
tglVertex3f(+halfWidth, -halfHeight, 0.0f);
|
tglVertex3f(+halfWidth, -halfHeight, 0.0f);
|
||||||
tglEnd();
|
tglEnd();
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
// In Grim, the bottom edge of the sprite is at y=0 and
|
// In Grim, the bottom edge of the sprite is at y=0 and
|
||||||
// the texture is flipped along the X-axis.
|
// the texture is flipped along the X-axis.
|
||||||
float halfWidth = (sprite->_width / 2) * _scaleW;
|
float halfWidth = (sprite->_width / 2) * _scaleW;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue