浏览代码

one or two fewer warnings

Cary Sandvig 25 年之前
父节点
当前提交
08e05167f8
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      panda/src/gui/guiButton.I

+ 3 - 0
panda/src/gui/guiButton.I

@@ -89,6 +89,9 @@ INLINE void GuiButton::inactive(void) {
   case DOWN_ROLLOVER:
     switch_state(INACTIVE_ROLLOVER);
     break;
+  case INACTIVE:
+  case INACTIVE_ROLLOVER:
+    break;
   default:
     gui_cat->warning() << "got inactive from invalid state (" << (int)_state
 		       << "), button '" << this->get_name() << "'" << endl;