aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorVlad Adrian <avalorrian@gmail.com>2019-04-21 21:51:03 +0300
committerGitHub <noreply@github.com>2019-04-21 21:51:03 +0300
commit3dda1c41ec74ba7a55926de971289ddaf2f4a46e (patch)
treef0e8712fd7940c37ae04e52e1ad1935f54ecd44f /examples
parent86c887f0cf2457503b13e900b6018fd596468389 (diff)
downloadraylib-3dda1c41ec74ba7a55926de971289ddaf2f4a46e.tar.gz
raylib-3dda1c41ec74ba7a55926de971289ddaf2f4a46e.zip
Fixed formatting! Grumble, grumble...
Diffstat (limited to 'examples')
-rw-r--r--examples/text/text_unicode.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/text/text_unicode.c b/examples/text/text_unicode.c
index 1538ef6f..f383dcad 100644
--- a/examples/text/text_unicode.c
+++ b/examples/text/text_unicode.c
@@ -270,10 +270,14 @@ 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) {
+ 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;
Vector2 a = {selectedPos.x, msgRect.y + msgRect.height}, b = {a.x + 8, a.y + 10}, c= {a.x+10, a.y}; // coordinates for the chat bubble triangle