Fixed hotkeys for switching rendering backends.

This commit is contained in:
Maciej Suminski 2013-09-06 10:19:53 +02:00
parent f93d297cb5
commit f04df9d79c
1 changed files with 12 additions and 0 deletions

View File

@ -540,6 +540,18 @@ void PCB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosit
DisplayOpt.ContrastModeDisplay = !DisplayOpt.ContrastModeDisplay; DisplayOpt.ContrastModeDisplay = !DisplayOpt.ContrastModeDisplay;
m_canvas->Refresh(); m_canvas->Refresh();
break; break;
case HK_CANVAS_CAIRO:
evt_type = ID_MENU_CANVAS_CAIRO;
break;
case HK_CANVAS_OPENGL:
evt_type = ID_MENU_CANVAS_OPENGL;
break;
case HK_CANVAS_DEFAULT:
evt_type = ID_MENU_CANVAS_DEFAULT;
break;
} }
if( evt_type != 0 ) if( evt_type != 0 )