summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2022-03-22 21:11:56 +0100
committerRay <[email protected]>2022-03-22 21:11:56 +0100
commit3634adf8d4bd16ec886328f66ece533a13b9b032 (patch)
tree50d5c55bdaafb4d639cc5fd3f71e4054d5cb716b /examples
parentbd95408b0686734f31bfc10a6e1355d03d2d7358 (diff)
downloadraylib-3634adf8d4bd16ec886328f66ece533a13b9b032.tar.gz
raylib-3634adf8d4bd16ec886328f66ece533a13b9b032.zip
Update textures_draw_tiled.c
Diffstat (limited to 'examples')
-rw-r--r--examples/textures/textures_draw_tiled.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/textures/textures_draw_tiled.c b/examples/textures/textures_draw_tiled.c
index d455d9ca..42f72d07 100644
--- a/examples/textures/textures_draw_tiled.c
+++ b/examples/textures/textures_draw_tiled.c
@@ -119,11 +119,11 @@ 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, GetScreenWidth() - 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, GetScreenHeight() - 2.0f*MARGIN_SIZE},
(Vector2){0.0f, 0.0f}, rotation, scale, colors[activeCol]);
// Draw options
- DrawRectangle(MARGIN_SIZE, MARGIN_SIZE, OPT_WIDTH - MARGIN_SIZE, screenHeight - 2*MARGIN_SIZE, ColorAlpha(LIGHTGRAY, 0.5f));
+ DrawRectangle(MARGIN_SIZE, MARGIN_SIZE, OPT_WIDTH - MARGIN_SIZE, GetScreenHeight() - 2*MARGIN_SIZE, ColorAlpha(LIGHTGRAY, 0.5f));
DrawText("Select Pattern", 2 + MARGIN_SIZE, 30 + MARGIN_SIZE, 10, BLACK);
DrawTexture(texPattern, 2 + MARGIN_SIZE, 40 + MARGIN_SIZE, BLACK);