diff options
| author | ilotterytea <iltsu@alright.party> | 2025-01-28 00:37:35 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-01-28 00:37:35 +0500 |
| commit | 7ef23646dac255cc14a183ad8fabe438f940d88f (patch) | |
| tree | 5149f1bc90e44b2394f547f499bb7ee9d670145a /src | |
| parent | 2a59e9274104a7e38c791926fc19f8161f6893b9 (diff) | |
upd: don't draw preview tile if we are erasing them
Diffstat (limited to 'src')
| -rw-r--r-- | src/editor.c | 3 |
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)) { |
