diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2016-04-04 02:25:26 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2016-04-04 02:25:26 +0200 |
commit | a681d0a7fe91293728052cad405214dcbeb46ad5 (patch) | |
tree | 2d9017504b799196e21fe5e9f201f38e6f34310f /src/ui.c | |
parent | 0aa4954f105b6f418cdb2f1f23e8f9a04bee327d (diff) |
Plane wave source (broken).
Diffstat (limited to 'src/ui.c')
-rw-r--r-- | src/ui.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -240,18 +240,6 @@ void ui_event_window(SDL_Event *event, ui_window *uiw) sv->xsection_flags |= XSECTION_YZ; break; - case SDLK_w: - sv->xsection_frac += 0.1f; - if (sv->xsection_frac > 1.0f) - sv->xsection_frac = 1.0f; - break; - - case SDLK_s: - sv->xsection_frac -= 0.1f; - if (sv->xsection_frac < 0.0f) - sv->xsection_frac = 0.0f; - break; - case SDLK_o: ui_infof(uiw, "Symulacja wstrzymana"); itc_chan_push(&sv->sim->ctl, PHY_CMD_PAUSE, NULL); @@ -575,7 +563,7 @@ void ui_draw_window(ui_window *uiw) v2_set(sv->origin, 0, 0); v2_set(sv->scale, 1, 1); - sv->xsection_flags = XSECTION_XY | XSECTION_E; + sv->xsection_flags = XSECTION_XZ | XSECTION_E; sv->xsection_frac = 0.5f; sv->select_valid = false; |