v_draw.hpp: fix r_draw.h being included inside srb2 namespace

This commit is contained in:
James R 2024-01-12 05:01:01 -08:00
parent 69c3aaf4f2
commit 76b0639d78
2 changed files with 7 additions and 2 deletions

View file

@ -256,8 +256,8 @@ private:
static fixed_t font_width(Font font, INT32 flags, const char* string);
};
#include "v_draw_setter.hpp"
}; // namespace srb2
#include "v_draw_setter.hpp"
#endif // __V_DRAW_HPP__

View file

@ -12,6 +12,9 @@
#include "r_draw.h" // R_GetTranslationColormap
namespace srb2
{
inline Draw::Chain& Draw::Chain::x(float x)
{
x_ += x;
@ -115,4 +118,6 @@ inline Draw::Chain& Draw::Chain::colorize(skincolornum_t color)
return colormap(R_GetTranslationColormap(TC_RAINBOW, color, GTC_CACHE));
}
}; // namespace srb2
#endif // __V_DRAW_SETTER_HPP__