From 37924183583cf3fdc59b91de0acc26e1fcf2598d Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 8 Jan 2013 16:25:42 +0000 Subject: fix linux build git-svn-id: http://skia.googlecode.com/svn/trunk@7085 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/views/unix/SkOSWindow_Unix.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/views/unix/SkOSWindow_Unix.cpp b/src/views/unix/SkOSWindow_Unix.cpp index 6c973e0186..dbb8ceaeaa 100644 --- a/src/views/unix/SkOSWindow_Unix.cpp +++ b/src/views/unix/SkOSWindow_Unix.cpp @@ -150,7 +150,7 @@ void SkOSWindow::post_linuxevent() { XFlush(fUnixWindow.fDisplay); } -static unsigned getModifierKeys(const XEvent& evt) { +static unsigned getModi(const XEvent& evt) { // unsigned xmod = evt.xkey.state; return 0; // TODO } @@ -177,16 +177,16 @@ void SkOSWindow::loop() { case ButtonPress: if (evt.xbutton.button == Button1) this->handleClick(evt.xbutton.x, evt.xbutton.y, - SkView::Click::kDown_State, getModifierKeys(evt)); + SkView::Click::kDown_State, NULL, getModi(evt)); break; case ButtonRelease: if (evt.xbutton.button == Button1) this->handleClick(evt.xbutton.x, evt.xbutton.y, - SkView::Click::kUp_State, getModifierKeys(evt)); + SkView::Click::kUp_State, NULL, getModi(evt)); break; case MotionNotify: this->handleClick(evt.xmotion.x, evt.xmotion.y, - SkView::Click::kMoved_State, getModifierKeys(evt)); + SkView::Click::kMoved_State, NULL, getModi(evt)); break; case KeyPress: { KeySym keysym = XkbKeycodeToKeysym(dsp, evt.xkey.keycode, 0, 0); -- cgit v1.2.3