summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/examples/mouse_lock/mouse_lock.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ppapi/examples/mouse_lock/mouse_lock.cc b/ppapi/examples/mouse_lock/mouse_lock.cc
index 734aec7..395cbf8 100644
--- a/ppapi/examples/mouse_lock/mouse_lock.cc
+++ b/ppapi/examples/mouse_lock/mouse_lock.cc
@@ -160,7 +160,7 @@ class MyInstance : public pp::Instance, public pp::MouseLock_Dev {
RIGHT = 1,
UP = 2,
DOWN = 3
- } direction;
+ } direction = LEFT;
bool draw_needle = GetDistance(mouse_movement_.x(), mouse_movement_.y(),
0, 0) > kCenteralSpotRadius;
if (draw_needle) {