summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/editor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/editor.c b/src/editor.c
index 8733143..42dd349 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -67,7 +67,8 @@ void SE_DrawEditor(Editor *editor, Camera2D *camera) {
Rectangle s = {0, 0, 16, 16};
Rectangle d = {rx, ry, zoom, zoom};
- DrawTexturePro(t->texture, s, d, (Vector2){0, 0}, 0.0f, WHITE);
+ if (!IsMouseButtonDown(MOUSE_BUTTON_RIGHT))
+ DrawTexturePro(t->texture, s, d, (Vector2){0, 0}, 0.0f, WHITE);
// placing tiles
if (IsMouseButtonDown(MOUSE_BUTTON_LEFT)) {