diff options
| author | Vlad Adrian <avalorrian@gmail.com> | 2019-04-21 21:57:57 +0300 |
|---|---|---|
| committer | Demizdor <avalorrian@gmail.com> | 2019-04-21 22:05:25 +0300 |
| commit | 98070982bf7b61c8595eb855acfebd721f68af68 (patch) | |
| tree | c372b108270d64c7707b9614f8ad4deb8ab5a6f6 | |
| parent | 3dda1c41ec74ba7a55926de971289ddaf2f4a46e (diff) | |
| download | raylib-98070982bf7b61c8595eb855acfebd721f68af68.tar.gz raylib-98070982bf7b61c8595eb855acfebd721f68af68.zip | |
Fix formatting ...not very good at this
| -rw-r--r-- | examples/text/text_unicode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/text/text_unicode.c b/examples/text/text_unicode.c index f383dcad..d960305a 100644 --- a/examples/text/text_unicode.c +++ b/examples/text/text_unicode.c @@ -189,7 +189,7 @@ int main(int argc, char **argv) // Draw //---------------------------------------------------------------------------------- - BeginDrawing(); + BeginDrawing(); ClearBackground(RAYWHITE); // Draw emoji and the text bubbles @@ -271,12 +271,12 @@ void Draw() // Calculate size for the message box (approximate the height and width) Vector2 sz = MeasureTextEx(*font, messages[message].text, font->baseSize, 1.0f); if(sz.x > 300) - { + { sz.y *= sz.x/300; sz.x = 300; } - else if(sz.x < 160) - sz.x = 160; + else if(sz.x < 160) + sz.x = 160; Rectangle msgRect = { selectedPos.x - 38.8f, selectedPos.y, 2 * horizontalPadding + sz.x, 2 * verticalPadding + sz.y}; msgRect.y -= msgRect.height; |
