From f04df9d79c2857ac3163a9b4348ac3a072b083f1 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 6 Sep 2013 10:19:53 +0200 Subject: [PATCH] Fixed hotkeys for switching rendering backends. --- pcbnew/hotkeys_board_editor.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pcbnew/hotkeys_board_editor.cpp b/pcbnew/hotkeys_board_editor.cpp index 0a155643f4..691346005a 100644 --- a/pcbnew/hotkeys_board_editor.cpp +++ b/pcbnew/hotkeys_board_editor.cpp @@ -540,6 +540,18 @@ void PCB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosit DisplayOpt.ContrastModeDisplay = !DisplayOpt.ContrastModeDisplay; m_canvas->Refresh(); 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 )