mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
view.c needs to be in the main console lib rather than the client plugin
and make view_draw the default draw function for new views
This commit is contained in:
parent
6fb5acc868
commit
0fec378e31
3 changed files with 4 additions and 3 deletions
|
@ -12,8 +12,9 @@ plugin_PROGRAMS= @SERVER_PLUGIN_TARGETS@ @CLIENT_PLUGIN_TARGETS@
|
||||||
noinst_PROGRAMS= @SERVER_PLUGIN_STATIC@ @CLIENT_PLUGIN_STATIC@
|
noinst_PROGRAMS= @SERVER_PLUGIN_STATIC@ @CLIENT_PLUGIN_STATIC@
|
||||||
EXTRA_PROGRAMS= console_server.la console_client.la
|
EXTRA_PROGRAMS= console_server.la console_client.la
|
||||||
|
|
||||||
common_sources= buffer.c complete.c console.c inputline.c list.c filelist.c
|
common_sources= \
|
||||||
client_sources= client.c menu.c view.c
|
buffer.c complete.c console.c inputline.c list.c filelist.c view.c
|
||||||
|
client_sources= client.c menu.c
|
||||||
server_sources= server.c
|
server_sources= server.c
|
||||||
|
|
||||||
libQFconsole_la_LDFLAGS= -version-info 1:0:0 -rpath $(libdir)
|
libQFconsole_la_LDFLAGS= -version-info 1:0:0 -rpath $(libdir)
|
||||||
|
|
|
@ -757,7 +757,6 @@ C_Init (void)
|
||||||
con_debuglog = COM_CheckParm ("-condebug");
|
con_debuglog = COM_CheckParm ("-condebug");
|
||||||
|
|
||||||
con_data.view = view_new (0, 0, 320, 200, grav_northeast);
|
con_data.view = view_new (0, 0, 320, 200, grav_northeast);
|
||||||
con_data.view->draw = view_draw;
|
|
||||||
|
|
||||||
console_view = view_new (0, 0, 320, 200, grav_northwest);
|
console_view = view_new (0, 0, 320, 200, grav_northwest);
|
||||||
say_view = view_new (0, 0, 320, 8, grav_northwest);
|
say_view = view_new (0, 0, 320, 8, grav_northwest);
|
||||||
|
|
|
@ -54,6 +54,7 @@ view_new (int xp, int yp, int xl, int yl, grav_t grav)
|
||||||
view->ylen = yl;
|
view->ylen = yl;
|
||||||
view->gravity = grav;
|
view->gravity = grav;
|
||||||
view->visible = 1;
|
view->visible = 1;
|
||||||
|
view->draw = view_draw;
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue