[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:
Bill Currie 2023-01-22 03:28:32 +09:00
parent 254fcff8ff
commit 158c45d120

View file

@ -1312,7 +1312,8 @@ Vulkan_Draw_ConsoleBackground (int lines, byte alpha, vulkan_ctx_t *ctx)
qpic_t *cpic; qpic_t *cpic;
cpic = Vulkan_Draw_CachePic ("gfx/conback.lmp", false, ctx); cpic = Vulkan_Draw_CachePic ("gfx/conback.lmp", false, ctx);
float s = 1.0 / ctx->twod_scale; 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 void