Skip to content

Commit eca8668

Browse files
committed
Refactor uv value assignments
1 parent 5b5f3d0 commit eca8668

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Core/GameEngineDevice/Source/W3DDevice/GameClient/W3DSmudge.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,16 +239,20 @@ Bool W3DSmudgeManager::testHardwareSupport(void)
239239

240240
//bottom right
241241
v[0].p = Vector4( BLOCK_SIZE-0.5f, BLOCK_SIZE-0.5f, 0.0f, 1.0f );
242-
v[0].u = BLOCK_SIZE/(Real)TheDisplay->getWidth(); v[0].v = BLOCK_SIZE/(Real)TheDisplay->getHeight();
242+
v[0].u = BLOCK_SIZE/(Real)TheDisplay->getWidth();
243+
v[0].v = BLOCK_SIZE/(Real)TheDisplay->getHeight();
243244
//top right
244245
v[1].p = Vector4( BLOCK_SIZE-0.5f, 0-0.5f, 0.0f, 1.0f );
245-
v[1].u = BLOCK_SIZE/(Real)TheDisplay->getWidth(); v[1].v = 0;
246+
v[1].u = BLOCK_SIZE/(Real)TheDisplay->getWidth();
247+
v[1].v = 0;
246248
//bottom left
247249
v[2].p = Vector4( 0-0.5f, BLOCK_SIZE-0.5f, 0.0f, 1.0f );
248-
v[2].u = 0; v[2].v = BLOCK_SIZE/(Real)TheDisplay->getHeight();
250+
v[2].u = 0;
251+
v[2].v = BLOCK_SIZE/(Real)TheDisplay->getHeight();
249252
//top left
250253
v[3].p = Vector4( 0-0.5f, 0-0.5f, 0.0f, 1.0f );
251-
v[3].u = 0; v[3].v = 0;
254+
v[3].u = 0;
255+
v[3].v = 0;
252256

253257
v[0].color = UNIQUE_COLOR;
254258
v[1].color = UNIQUE_COLOR;

0 commit comments

Comments
 (0)