Dovyski / cvui

A (very) simple UI lib built on top of OpenCV drawing primitives
https://dovyski.github.io/cvui/
MIT License
832 stars 213 forks source link

A little bug in the function "cvui::rect" #86

Open ghost opened 5 years ago

ghost commented 5 years ago

Hello,When i running the exmple of mouse.cpp, i found a little bug in the function "cvui::rect", KTPG{50E_U@~UH1$CG86%7M I8F`7O8`BGK2Z5 YA6THV C RY_$B}2MIT$U1LMQK%( JO {(6ZDG4XYMF87DA~199C6S7 when the value of the thePos.width and thtPos.height is zeros whill case the function addWeighted crushed ,so i use the following method to fix that 6ZG@BGRISXO_$2X5IK3O4T

Dovyski commented 5 years ago

Hello and thank you for your suggestion! I'll implement your fix as soon as I have some free time to work on cvui.