summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ui.c b/src/ui.c
index 5b58be7..868b6a1 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -338,16 +338,22 @@ void ui_event_window(SDL_Event *event, ui_window *uiw)
case SDLK_4:
ui_infof(uiw, "Przekrój: pola elektrycznego");
- sv->xsection_flags &= ~XSECTION_H;
+ sv->xsection_flags &= ~XSECTION_FIELDS;
sv->xsection_flags |= XSECTION_E;
break;
case SDLK_5:
ui_infof(uiw, "Przekrój: pola magnetycznego");
- sv->xsection_flags &= ~XSECTION_E;
+ sv->xsection_flags &= ~XSECTION_FIELDS;
sv->xsection_flags |= XSECTION_H;
break;
+ case SDLK_6:
+ ui_infof(uiw, "Przekrój: pola przenikalności");
+ sv->xsection_flags &= ~XSECTION_FIELDS;
+ sv->xsection_flags |= XSECTION_EPS;
+ break;
+
case SDLK_z:
if (sv->select_valid)
{