Fix compiler warnings
This commit is contained in:
parent
757c817855
commit
453d9dad7f
@ -87,7 +87,7 @@ glm::vec2 gui::Context::MeasureText(std::string_view text)
|
|||||||
|
|
||||||
glm::vec2 cursor(0.0f);
|
glm::vec2 cursor(0.0f);
|
||||||
|
|
||||||
while (cp = DecodeUTF8Codepoint(p, end))
|
while ((cp = DecodeUTF8Codepoint(p, end)))
|
||||||
{
|
{
|
||||||
if (cp == ' ')
|
if (cp == ' ')
|
||||||
{
|
{
|
||||||
@ -151,7 +151,7 @@ void gui::Context::DrawText(std::string_view text, const glm::vec2& pos, uint32_
|
|||||||
|
|
||||||
uint32_t curr_color = color;
|
uint32_t curr_color = color;
|
||||||
|
|
||||||
while (cp = DecodeUTF8Codepoint(p, end))
|
while ((cp = DecodeUTF8Codepoint(p, end)))
|
||||||
{
|
{
|
||||||
if (cp == ' ')
|
if (cp == ' ')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user