diff options
| author | realtradam <[email protected]> | 2022-05-17 05:42:11 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-05-17 05:42:11 -0400 |
| commit | b6c2220afafe9c7d38853a6b49a78b802b93e730 (patch) | |
| tree | 7b062cc0d29facdea5e679dbd5160878aeabe424 | |
| parent | 0ae066ae7382e5abb5c5e40026a7d66d36a3c5f6 (diff) | |
| download | raylib-DrawTexturePro-interactive-demo-b6c2220afafe9c7d38853a6b49a78b802b93e730.tar.gz raylib-DrawTexturePro-interactive-demo-b6c2220afafe9c7d38853a6b49a78b802b93e730.zip | |
fixed dragging inverted rects
| -rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -227,8 +227,8 @@ void ResolveMouseState() { (Rectangle) { .x = elementPreRender.x + dtpSource.x + 10 + gridCenter, .y = elementPreRender.y + dtpSource.y + 10 + gridCenter, - .width = dtpSource.width, - .height = dtpSource.height + .width = fabs(dtpSource.width), + .height = fabs(dtpSource.height) } ) ) { @@ -262,8 +262,8 @@ void ResolveMouseState() { (Rectangle) { .x = elementRender.x + dtpDest.x + 10 + gridCenter, .y = elementRender.y + dtpDest.y + 10 + gridCenter, - .width = dtpDest.width, - .height = dtpDest.height + .width = fabs(dtpDest.width), + .height = fabs(dtpDest.height) } ) ) { |
