[gs-commits] mupdf 1.16.1.27 Bug 699726: Don't call glutGetModifiers f

[email protected] (Tor Andersson)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
commit e30303148f78081a8cf48a36a1ad3144897da812
Author: Tor Andersson <[email protected]>
Date:   Mon Sep 2 15:12:21 2019 +0200

    Bug 699726: Don't call glutGetModifiers from motion callbacks.
    
    The only valid callbacks for this function are the mouse and keyboard
    callbacks.

diff --git a/platform/gl/gl-ui.c b/platform/gl/gl-ui.c
index 9da029a..61111de 100644
--- a/platform/gl/gl-ui.c
+++ b/platform/gl/gl-ui.c
@@ -327,7 +327,6 @@ static void on_motion(int x, int y)
 {
 	ui.x = x;
 	ui.y = y;
-	ui.mod = glutGetModifiers();
 	ui_invalidate();
 }
 
@@ -335,7 +334,6 @@ static void on_passive_motion(int x, int y)
 {
 	ui.x = x;
 	ui.y = y;
-	ui.mod = glutGetModifiers();
 	ui_invalidate();
 }
 

http://git.ghostscript.com/?p=mupdf.git;a=commit;h=e30303148f78081a8cf48a36a1ad3144897da812

--
MuPDF library
Artifex Software, Inc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.