2.5 Ghost Compile Fix for windows. Patch by b333rt. Thanks!
authorThomas Dinges <blender@dingto.org>
Wed, 16 Sep 2009 17:13:03 +0000 (17:13 +0000)
committerThomas Dinges <blender@dingto.org>
Wed, 16 Sep 2009 17:13:03 +0000 (17:13 +0000)
intern/ghost/intern/GHOST_WindowWin32.cpp

index 7cc759790306e0087bb23545bf8d0ac0418b9c81..e2caf31edee9fcc2d0edda0ce174daddd228dec7 100644 (file)
@@ -720,15 +720,15 @@ void GHOST_WindowWin32::processWin32TabletEvent(WPARAM wParam, LPARAM lParam)
                                        switch (pkt.pkCursor) {
                                                case 0: /* first device */
                                                case 3: /* second device */
-                                                       m_tabletData->Active = 0; /* puck - not yet supported */
+                                                       m_tabletData->Active = GHOST_kTabletModeNone; /* puck - not yet supported */
                                                        break;
                                                case 1:
                                                case 4:
-                                                       m_tabletData->Active = 1; /* stylus */
+                                                       m_tabletData->Active = GHOST_kTabletModeStylus; /* stylus */
                                                        break;
                                                case 2:
                                                case 5:
-                                                       m_tabletData->Active = 2; /* eraser */
+                                                       m_tabletData->Active = GHOST_kTabletModeEraser; /* eraser */
                                                        break;
                                        }
                                        if (m_maxPressure > 0) {