BUG: about click to configure blocks
Posted: 24 Jul 2012, 11:10
Hi Edward_Lii and other developers,
I found a bug that is when clicking block to configure it in level editor, if the mouse is happen on some widgets in config dialog, then the widget will receive click event In the code when received SDL_MOUSEBUTTONDOWN the config dialog will appear, but then the widget will receive SDL_MOUSEBUTTONUP event So I changed the code a bit and uploaded it to SVN, please review the code
[EDIT] The change in SVN r476 breaks dragging Please ignore the changes... I'm finding another solution...
[EDIT] Fixed it again in r477, don't know if it will introduce other bugs
I found a bug that is when clicking block to configure it in level editor, if the mouse is happen on some widgets in config dialog, then the widget will receive click event In the code when received SDL_MOUSEBUTTONDOWN the config dialog will appear, but then the widget will receive SDL_MOUSEBUTTONUP event So I changed the code a bit and uploaded it to SVN, please review the code
[EDIT] The change in SVN r476 breaks dragging Please ignore the changes... I'm finding another solution...
[EDIT] Fixed it again in r477, don't know if it will introduce other bugs