Add x/y pos to debug output of discarded motion events
...when they appear to be at the identical position as before. Note - Also, using regular `printf()` temporarily, so the output can be shown w/o building a DEBUG version. (Sadie is testing via a Linux package that builds from git master branch.)
This commit is contained in:
parent
8c6f8a9dc3
commit
c119edb702
1 changed files with 3 additions and 2 deletions
|
|
@ -22,7 +22,7 @@
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
(See COPYING.txt)
|
(See COPYING.txt)
|
||||||
|
|
||||||
June 14, 2002 - November 9, 2025
|
June 14, 2002 - November 11, 2025
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
|
@ -2693,7 +2693,8 @@ static void mainloop(void)
|
||||||
{
|
{
|
||||||
if (event.type == SDL_MOUSEMOTION && oldpos_x == (int)event.motion.x && oldpos_y == (int)event.motion.y)
|
if (event.type == SDL_MOUSEMOTION && oldpos_x == (int)event.motion.x && oldpos_y == (int)event.motion.y)
|
||||||
{
|
{
|
||||||
DEBUG_PRINTF("Discarding mouse motion event\n");
|
/* FIXME: Switch back to DEBUG_PRINTF before release! -bjk 2025.11.11 */
|
||||||
|
/*DEBUG_PRINTF*/printf("Discarding mouse motion event @ %d,%d\n", oldpos_x, oldpos_y);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue