Could you please explain the following part of your patch:
Index: src/guibutton.cpp
--- src/guibutton.cpp (revisión: 472)
+++ src/guibutton.cpp (copia de trabajo)
@@ -166,8 +166,9 @@
static int myX, myY;
// Return immediatly if this is NOT visible
- if ( IsSet( OC_GUIMAIN_VISIBLE ) == false )
- return;
+// Always verify for calc if mouse is up.
+/ if ( !IsSet( OC_GUIMAIN_VISIBLE ) )
+ return;/
// The button must be contained in a guicontainer !
assert( _pctr != NULL );
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If the mouse is positioned over an invisible button, the button state is that the mouse is not up.
If the button made visible and you click, nothing happens because the button is in the wrong state.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
Could you please explain the following part of your patch:
Index: src/guibutton.cpp
--- src/guibutton.cpp (revisión: 472)
+++ src/guibutton.cpp (copia de trabajo)
@@ -166,8 +166,9 @@
static int myX, myY;
// Return immediatly if this is NOT visible
- if ( IsSet( OC_GUIMAIN_VISIBLE ) == false )
- return;
+// Always verify for calc if mouse is up.
+/ if ( !IsSet( OC_GUIMAIN_VISIBLE ) )
+ return;/
// The button must be contained in a guicontainer !
assert( _pctr != NULL );
If the mouse is positioned over an invisible button, the button state is that the mouse is not up.
If the button made visible and you click, nothing happens because the button is in the wrong state.
Applied.
Thank you for your help.