From d55b50fd37b3ac20e0a29f281815c30f009adc8b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 28 Sep 2021 17:35:09 -0700 Subject: [PATCH] smyrna: remove useless 'cb_mouseentry' callback --- cmd/smyrna/glutrender.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/cmd/smyrna/glutrender.c b/cmd/smyrna/glutrender.c index 5bbafdcc4..388284517 100644 --- a/cmd/smyrna/glutrender.c +++ b/cmd/smyrna/glutrender.c @@ -153,18 +153,7 @@ static void cb_drag(int X, int Y) cb_display(); } -void cb_mouseentry(int state) -{ - if(state==GLUT_LEFT) - { - //TODO when mouse leaves the scene (which might be impossible in full screen modes with one monitor - } - else // GLUT_ENTERED - { - //TODO mouse is back in scene - } -} void cb_keyboard(unsigned char key,int x, int y) { if (key==27) /*ESC*/ @@ -279,7 +268,7 @@ int cb_glutinit(int x,int y,int w,int h, int bits,int s_rate,int fullscreen,int* glutMotionFunc(cb_drag); glutPassiveMotionFunc(cb_mouseover); glutVisibilityFunc(NULL); - glutEntryFunc(cb_mouseentry);//if mouse pointer left or entered the scene + glutEntryFunc(NULL); glutSpecialFunc(cb_special_key); glutSpecialUpFunc(cb_special_key_up); -- 2.40.0