mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
[vulkan] Correct calculation of conback position
The problem with setting con_size to 0.5 and con_speed to 0 is it's difficult to tell when the console positioning is backwards.
This commit is contained in:
parent
254fcff8ff
commit
158c45d120
1 changed files with 2 additions and 1 deletions
|
@ -1312,7 +1312,8 @@ Vulkan_Draw_ConsoleBackground (int lines, byte alpha, vulkan_ctx_t *ctx)
|
|||
qpic_t *cpic;
|
||||
cpic = Vulkan_Draw_CachePic ("gfx/conback.lmp", false, ctx);
|
||||
float s = 1.0 / ctx->twod_scale;
|
||||
Vulkan_Draw_FitPic (0, -lines, vid.width * s, vid.height * s, cpic, ctx);
|
||||
int y = lines - vid.height * s;
|
||||
Vulkan_Draw_FitPic (0, y, vid.width * s, vid.height * s, cpic, ctx);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue