diff options
author | yinsimei | 2017-05-29 08:02:59 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | ca2ee02496f232a53ed6c96bd296e0941da636f6 (patch) | |
tree | d975887a6cead9e711afddb2053020db68a7914b /engines/sludge/transition.cpp | |
parent | 2dddb900c9b6d4356a19886cd31587a049be23d8 (diff) | |
download | scummvm-rg350-ca2ee02496f232a53ed6c96bd296e0941da636f6.tar.gz scummvm-rg350-ca2ee02496f232a53ed6c96bd296e0941da636f6.tar.bz2 scummvm-rg350-ca2ee02496f232a53ed6c96bd296e0941da636f6.zip |
SLUDGE: code formatting
Diffstat (limited to 'engines/sludge/transition.cpp')
-rw-r--r-- | engines/sludge/transition.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/sludge/transition.cpp b/engines/sludge/transition.cpp index 0fcd4fe7a4..73ac73736b 100644 --- a/engines/sludge/transition.cpp +++ b/engines/sludge/transition.cpp @@ -113,7 +113,7 @@ void transitionSnapshotBox() { //glTexEnvf (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); glBindTexture(GL_TEXTURE_2D, snapshotTextureName); - float xScale = (float) brightnessLevel * winWidth / 510.f; // 510 = 255*2 + float xScale = (float) brightnessLevel * winWidth / 510.f;// 510 = 255*2 float yScale = (float) brightnessLevel * winHeight / 510.f; const GLfloat vertices[] = { @@ -187,7 +187,6 @@ bool reserveTransitionTexture() { return true; } - void transitionDisolve() { #if 0 @@ -224,7 +223,7 @@ void transitionDisolve() { toScreen[0] = toScreen[1] = toScreen[2] = toScreen[3] = 0; } toScreen += 4; - } while (toScreen < end); + }while (toScreen < end); texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 256, 256, 0, GL_RGBA, GL_UNSIGNED_BYTE, transitionTexture, transitionTextureName); @@ -292,7 +291,7 @@ void transitionTV() { toScreen[0] = toScreen[1] = toScreen[2] = toScreen[3] = 0; } toScreen += 4; - } while (toScreen < end); + }while (toScreen < end); texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 256, 256, 0, GL_RGBA, GL_UNSIGNED_BYTE, transitionTexture, transitionTextureName); |