summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2016-04-06 02:55:02 +0200
committerPaweł Redman <pawel.redman@gmail.com>2016-04-06 02:55:02 +0200
commit85422fbdaf5c56ca817f0a8d8f17f2d725dd1c3a (patch)
tree99b5dd2dcb7a11c62ea76bf1efd15c41e01d349d /src/ui.c
parent5659a1baba94d10f76e72c8bbb9fa7576ab4f19b (diff)
Finish CSG, permittivity visualisation.
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)
{