summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2022-03-22 21:10:51 +0100
committerRay <[email protected]>2022-03-22 21:10:51 +0100
commitbd95408b0686734f31bfc10a6e1355d03d2d7358 (patch)
tree72a28d07e9a7bf79444cf4a51fb6c2afba8d660e /examples
parentcb62cb675fb4b07a7afbc5ef53f5e502b3a9ef7e (diff)
downloadraylib-bd95408b0686734f31bfc10a6e1355d03d2d7358.tar.gz
raylib-bd95408b0686734f31bfc10a6e1355d03d2d7358.zip
Update textures_draw_tiled.c
Diffstat (limited to 'examples')
-rw-r--r--examples/textures/textures_draw_tiled.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/textures/textures_draw_tiled.c b/examples/textures/textures_draw_tiled.c
index f8e78650..d455d9ca 100644
--- a/examples/textures/textures_draw_tiled.c
+++ b/examples/textures/textures_draw_tiled.c
@@ -71,9 +71,6 @@ int main(int argc, char **argv)
{
// Update
//----------------------------------------------------------------------------------
- screenWidth = GetScreenWidth();
- screenHeight = GetScreenHeight();
-
// Handle mouse
if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT))
{
@@ -122,7 +119,7 @@ int main(int argc, char **argv)
ClearBackground(RAYWHITE);
// Draw the tiled area
- DrawTextureTiled(texPattern, recPattern[activePattern], (Rectangle){(float)OPT_WIDTH+MARGIN_SIZE, (float)MARGIN_SIZE, screenWidth - OPT_WIDTH - 2.0f*MARGIN_SIZE, screenHeight - 2.0f*MARGIN_SIZE},
+ DrawTextureTiled(texPattern, recPattern[activePattern], (Rectangle){(float)OPT_WIDTH+MARGIN_SIZE, (float)MARGIN_SIZE, GetScreenWidth() - OPT_WIDTH - 2.0f*MARGIN_SIZE, screenHeight - 2.0f*MARGIN_SIZE},
(Vector2){0.0f, 0.0f}, rotation, scale, colors[activeCol]);
// Draw options