ui/gtk: fix cursor in egl mode
commitf1aba960cc40ab65fa88c8678883bd2201708c55
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Nov 2018 07:49:49 +0000 (7 08:49 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 12 Nov 2018 13:15:54 +0000 (12 14:15 +0100)
tree42b1a607bb0344a175db395425f9ac6d825b9faf
parent6cdc2d189cb60a9d13e2d975b3fdb12eb00885cc
ui/gtk: fix cursor in egl mode

In egl mode the scale_x and scale_y variables are not set, so the
scaling logic in the mouse motion event handler does not work.

Fix that.  Also scale the cursor position in gd_egl_cursor_position().

Reported-by: Chen Zhang <tgfbeta@icloud.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Chen Zhang <tgfbeta@icloud.com>
Message-id: 20181107074949.13805-1-kraxel@redhat.com
ui/gtk-egl.c