apply dd_line_width to text2d calls

main
Dominik Madarász 2024-08-16 14:17:25 +02:00
parent b771d31a18
commit 65a50eb341
3 changed files with 3 additions and 0 deletions

View File

@ -386306,6 +386306,7 @@ void ddraw_flush_projview(mat44 proj, mat44 view) {
if(!count) continue;
unsigned rgbi = 0;
convert_key_to_color_width(meta, &rgbi, &dd_line_width);
dd_rs.line_width = (i == 1 ? dd_line_width : 0.3);
renderstate_apply(&dd_rs);
// color
vec3 rgbf = {((rgbi>>0)&255)/255.f,((rgbi>>8)&255)/255.f,((rgbi>>16)&255)/255.f};

View File

@ -145,6 +145,7 @@ void ddraw_flush_projview(mat44 proj, mat44 view) {
if(!count) continue;
unsigned rgbi = 0;
convert_key_to_color_width(meta, &rgbi, &dd_line_width);
dd_rs.line_width = (i == 1 ? dd_line_width : 0.3);
renderstate_apply(&dd_rs);
// color
vec3 rgbf = {((rgbi>>0)&255)/255.f,((rgbi>>8)&255)/255.f,((rgbi>>16)&255)/255.f};

View File

@ -21486,6 +21486,7 @@ void ddraw_flush_projview(mat44 proj, mat44 view) {
if(!count) continue;
unsigned rgbi = 0;
convert_key_to_color_width(meta, &rgbi, &dd_line_width);
dd_rs.line_width = (i == 1 ? dd_line_width : 0.3);
renderstate_apply(&dd_rs);
// color
vec3 rgbf = {((rgbi>>0)&255)/255.f,((rgbi>>8)&255)/255.f,((rgbi>>16)&255)/255.f};