Skip to content

Commit 3c1e517

Browse files
committed
Release v5.9: restore scoreboard HUD scaling
1 parent 27cd9fe commit 3c1e517

4 files changed

Lines changed: 8 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v5.9
4+
5+
- **Scaled HUD:** Restored scoreboard scaling in `hkglVertex2f` — v5.8 had limited `SCR_ExecuteLayoutString` scaling to image quads only, which left scoreboard text tiny/unscaled; scoreboard mode again scales all layout vertices.
6+
37
## v5.8
48

59
- **Scaled UI / HUD vertex scaling:**

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.8
1+
5.9

hdr/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
Increment version using: ./increment_version.sh
88
*/
99

10-
#define SOFBUDDY_VERSION "5.8"
10+
#define SOFBUDDY_VERSION "5.9"

src/features/scaled_ui_base/hooks/glvertex2f.cpp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ void resetGlVertexQuadState() {
2323
g_tiledBgVertexIndex = 1;
2424
}
2525

26-
static inline bool isQuadDrawCall() {
27-
switch (g_activeDrawCall) {
28-
case DrawRoutineType::Pic:
29-
case DrawRoutineType::StretchPic:
30-
case DrawRoutineType::PicOptions:
31-
return true;
32-
default:
33-
return false;
34-
}
35-
}
36-
3726
static inline void scaleVertexFromScreenCenter(float& x, float& y, float scale) {
3827
SOFBUDDY_ASSERT(orig_glVertex2f != nullptr);
3928
SOFBUDDY_ASSERT(scale > 0.0f);
@@ -66,11 +55,8 @@ void __stdcall hkglVertex2f(float x, float y) {
6655
break;
6756
#endif
6857
case uiRenderType::Scoreboard:
69-
if (isQuadDrawCall()) {
70-
scaleVertexFromScreenCenter(x, y, hudScale);
71-
return;
72-
}
73-
break;
58+
scaleVertexFromScreenCenter(x, y, hudScale);
59+
return;
7460
default:
7561
switch (g_activeDrawCall) {
7662
case DrawRoutineType::PicOptions: {

0 commit comments

Comments
 (0)