[console] Add a comment about console resizing

Due to design issues in the console API that I don't feel like
addressing at this stage, the console view is not a child of the
client's screen view (not even sure it should be in the first place), so
it won't get resized automatically when the client's screen view
resizes. However, ie_app_window is sent when the screen size changes,
and the console has to process input events anyway, so it's quite
reasonable to handle the event.
This commit is contained in:
Bill Currie 2022-09-22 16:18:53 +09:00
parent 7e03f23146
commit c580fb9ec7

View file

@ -678,6 +678,10 @@ exec_line (inputline_t *il)
Con_ExecLine (il->line); Con_ExecLine (il->line);
} }
// The console view is not a child of the client's screen view, so it won't
// get resized automatically when the screen changes size. However, since the
// console has to process input events anyway, handling ie_app_window is a
// reasonable alternative.
static void static void
con_app_window (const IE_event_t *event) con_app_window (const IE_event_t *event)
{ {