mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-28 02:32:48 +00:00
srb2::Draw::Chain: Make the button function name different between public and private contexts
The author of this commit's compiler was overzealous and kept on matching the wrong one
This commit is contained in:
parent
b2315484d4
commit
00fdae8b52
2 changed files with 4 additions and 4 deletions
|
|
@ -118,7 +118,7 @@ patch_t** get_button_patch(Draw::Button type, int ver)
|
|||
|
||||
}; // namespace
|
||||
|
||||
void Chain::button(Button type, int ver, std::optional<bool> press) const
|
||||
void Chain::button_(Button type, int ver, std::optional<bool> press) const
|
||||
{
|
||||
const auto _ = Clipper(*this);
|
||||
|
||||
|
|
|
|||
|
|
@ -163,8 +163,8 @@ public:
|
|||
|
||||
void fill(UINT8 color) const;
|
||||
|
||||
void button(Button type, std::optional<bool> press = {}) const { button(type, 0, press); }
|
||||
void small_button(Button type, std::optional<bool> press = {}) const { button(type, 1, press); }
|
||||
void button(Button type, std::optional<bool> press = {}) const { button_(type, 0, press); }
|
||||
void small_button(Button type, std::optional<bool> press = {}) const { button_(type, 1, press); }
|
||||
|
||||
private:
|
||||
constexpr Chain() {}
|
||||
|
|
@ -198,7 +198,7 @@ public:
|
|||
const UINT8* colormap_ = nullptr;
|
||||
|
||||
void string(const char* str, INT32 flags, Font font) const;
|
||||
void button(Button type, int ver, std::optional<bool> press = {}) const;
|
||||
void button_(Button type, int ver, std::optional<bool> press = {}) const;
|
||||
|
||||
friend Draw;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue