From 65a50eb3410b4dff4612d3680a30a98347a253c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Fri, 16 Aug 2024 14:17:25 +0200 Subject: [PATCH] apply dd_line_width to text2d calls --- engine/joint/v4k.h | 1 + engine/split/v4k_renderdd.c | 1 + engine/v4k.c | 1 + 3 files changed, 3 insertions(+) diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index 7db3123..53044f8 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -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}; diff --git a/engine/split/v4k_renderdd.c b/engine/split/v4k_renderdd.c index c6d8a36..fb1bf37 100644 --- a/engine/split/v4k_renderdd.c +++ b/engine/split/v4k_renderdd.c @@ -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}; diff --git a/engine/v4k.c b/engine/v4k.c index cd32eb6..df560ca 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -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};