diff options
| author | raysan5 <[email protected]> | 2018-12-26 10:51:13 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2018-12-26 10:51:13 +0100 |
| commit | 9a8320c52bf179633c33f16d4f0adbf57f820b1b (patch) | |
| tree | 5cffe1809d896b3f8aa5f851e61efcbc41d4fafb /src/textures.c | |
| parent | af4a177af41064db5ebf9a28dcac9eb178cd7fa9 (diff) | |
| download | raylib-9a8320c52bf179633c33f16d4f0adbf57f820b1b.tar.gz raylib-9a8320c52bf179633c33f16d4f0adbf57f820b1b.zip | |
REVIEWED: DrawRectanglePro()
Diffstat (limited to 'src/textures.c')
| -rw-r--r-- | src/textures.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/textures.c b/src/textures.c index fa1d7f0e..a7120979 100644 --- a/src/textures.c +++ b/src/textures.c @@ -2434,9 +2434,9 @@ void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, V rlEnableTexture(texture.id); rlPushMatrix(); - rlTranslatef(destRec.x, destRec.y, 0); - rlRotatef(rotation, 0, 0, 1); - rlTranslatef(-origin.x, -origin.y, 0); + rlTranslatef(destRec.x, destRec.y, 0.0f); + rlRotatef(rotation, 0.0f, 0.0f, 1.0f); + rlTranslatef(-origin.x, -origin.y, 0.0f); rlBegin(RL_QUADS); rlColor4ub(tint.r, tint.g, tint.b, tint.a); @@ -2524,9 +2524,9 @@ void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destR rlEnableTexture(texture.id); rlPushMatrix(); - rlTranslatef(destRec.x, destRec.y, 0); - rlRotatef(rotation, 0, 0, 1); - rlTranslatef(-origin.x, -origin.y, 0); + rlTranslatef(destRec.x, destRec.y, 0.0f); + rlRotatef(rotation, 0.0f, 0.0f, 1.0f); + rlTranslatef(-origin.x, -origin.y, 0.0f); rlBegin(RL_QUADS); rlColor4ub(tint.r, tint.g, tint.b, tint.a); |
