mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed #585
This commit is contained in:
parent
599708824f
commit
d0d91c412d
|
@ -1038,32 +1038,6 @@ void MENUS::on_render()
|
|||
ui_update(mx,my,mx*3.0f,my*3.0f,buttons);
|
||||
|
||||
// render
|
||||
if(time_get()-last_input > time_freq()*30 && client_state() == CLIENTSTATE_OFFLINE)
|
||||
{
|
||||
// screen saver :)
|
||||
render_background();
|
||||
|
||||
if(data->images[IMAGE_BANNER].id != 0)
|
||||
{
|
||||
float sw = 300*gfx_screenaspect();
|
||||
float sh = 300;
|
||||
gfx_mapscreen(0, 0, sw, sh);
|
||||
|
||||
gfx_texture_set(data->images[IMAGE_BANNER].id);
|
||||
gfx_quads_begin();
|
||||
gfx_setcolor(0,0,0,1.0f);
|
||||
gfx_quads_draw(sw/2, 50, 300, 300/4);
|
||||
gfx_setcolor(1,1,1,1.0f);
|
||||
gfx_quads_draw(sw/2-2, 50-2, 300, 300/4);
|
||||
gfx_quads_end();
|
||||
|
||||
//if((time_get()/(time_freq()/3))&1)
|
||||
// gfx_text(NULL, sw-150, sh-50, 10.0f, "INSERT COIN", -1);
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(client_state() != CLIENTSTATE_DEMOPLAYBACK)
|
||||
render();
|
||||
|
||||
|
@ -1087,8 +1061,6 @@ void MENUS::on_render()
|
|||
gfx_text_ex(&cursor, buf, -1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
escape_pressed = false;
|
||||
enter_pressed = false;
|
||||
num_inputevents = 0;
|
||||
|
|
Loading…
Reference in a new issue