From 525843bd3c76b51fda86f2ee9592034176a96fee Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 28 Sep 2021 17:39:06 -0700 Subject: [PATCH] smyrna: remove useless 'cb_mouseover' callback --- cmd/smyrna/glutrender.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/smyrna/glutrender.c b/cmd/smyrna/glutrender.c index 388284517..d186a9521 100644 --- a/cmd/smyrna/glutrender.c +++ b/cmd/smyrna/glutrender.c @@ -122,9 +122,6 @@ static void cb_mouseclick(int button, int state, int x, int y) cb_display(); } -void cb_mouseover(int x,int y)/*no mouse click only mouse pointer moving on context*/ -{ -} // mouse moving with a button clicked (dragging) static void cb_drag(int X, int Y) @@ -266,7 +263,7 @@ int cb_glutinit(int x,int y,int w,int h, int bits,int s_rate,int fullscreen,int* glutKeyboardUpFunc( cb_keyboard_up); glutMouseFunc(cb_mouseclick); glutMotionFunc(cb_drag); - glutPassiveMotionFunc(cb_mouseover); + glutPassiveMotionFunc(NULL); glutVisibilityFunc(NULL); glutEntryFunc(NULL); glutSpecialFunc(cb_special_key); -- 2.40.0