You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code/globalincs/toolchain/clang.h
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@
21
21
#if defined(__clang__)
22
22
23
23
#defineSCP_FORMAT_STRING
24
+
// from gcc: Since non-static C++ methods have an implicit this argument, the arguments of such methods should be counted from two, not one, when giving values for string-index and first-to-check.
Copy file name to clipboardExpand all lines: code/globalincs/toolchain/gcc.h
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@
22
22
#if defined(__GNUC__) && !defined(__clang__)
23
23
24
24
#defineSCP_FORMAT_STRING
25
+
// from gcc: Since non-static C++ methods have an implicit this argument, the arguments of such methods should be counted from two, not one, when giving values for string-index and first-to-check.
Copy file name to clipboardExpand all lines: code/globalincs/toolchain/mingw.h
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@
23
23
#include<stdio.h>
24
24
25
25
#defineSCP_FORMAT_STRING
26
+
// from gcc: Since non-static C++ methods have an implicit this argument, the arguments of such methods should be counted from two, not one, when giving values for string-index and first-to-check.
Copy file name to clipboardExpand all lines: code/hud/hud.h
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -366,11 +366,14 @@ class HudGauge
366
366
voidrenderBitmap(int frame, int x, int y, float scale = 1.0f, bool config = false) const;
367
367
voidrenderBitmapColor(int frame, int x, int y, float scale = 1.0f, bool config = false) const;
368
368
voidrenderBitmapEx(int frame, int x, int y, int w, int h, int sx, int sy, float scale = 1.0f, bool config = false) const;
369
-
voidrenderString(int x, int y, constchar *str, float scale = 1.0f, bool config = false);
370
-
voidrenderString(int x, int y, int gauge_id, constchar *str, float scale = 1.0f, bool config = false);
371
-
voidrenderStringAlignCenter(int x, int y, int area_width, constchar *s, float scale = 1.0f, bool config = false);
372
-
voidrenderPrintf(int x, int y, float scale, bool config, SCP_FORMAT_STRINGconstchar* format, ...) SCP_FORMAT_STRING_ARGS(6, 7);
373
-
voidrenderPrintfWithGauge(int x, int y, int gauge_id, float scale, bool config, SCP_FORMAT_STRINGconstchar* format, ...) SCP_FORMAT_STRING_ARGS(7, 8);
369
+
voidrenderString(int x, int y, constchar *str, float scale = 1.0f, bool config = false) const;
370
+
voidrenderString(int x, int y, constchar *str, size_t len, float scale = 1.0f, bool config = false) const;
371
+
voidrenderString(int x, int y, int gauge_id, constchar *str, float scale = 1.0f, bool config = false) const;
372
+
voidrenderString(int x, int y, int gauge_id, constchar *str, size_t len, float scale = 1.0f, bool config = false) const;
373
+
voidrenderStringAlignCenter(int x, int y, int area_width, constchar *s, float scale = 1.0f, bool config = false) const;
374
+
voidrenderStringAlignCenter(int x, int y, int area_width, constchar *s, size_t len, float scale = 1.0f, bool config = false) const;
375
+
voidrenderPrintf(int x, int y, float scale, bool config, SCP_FORMAT_STRINGconstchar* format, ...) const SCP_FORMAT_STRING_ARGS(6, 7);
376
+
voidrenderPrintfWithGauge(int x, int y, int gauge_id, float scale, bool config, SCP_FORMAT_STRINGconstchar* format, ...) const SCP_FORMAT_STRING_ARGS(7, 8);
374
377
voidrenderLine(int x1, int y1, int x2, int y2, bool config = false) const;
375
378
voidrenderGradientLine(int x1, int y1, int x2, int y2, bool config = false) const;
376
379
voidrenderRect(int x, int y, int w, int h, bool config = false) const;
0 commit comments