Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 08-26-2016, 05:34 PM   #1
geraintluff
Human being with feelings
 
geraintluff's Avatar
 
Join Date: Nov 2009
Location: mostly inside my own head
Posts: 346
Default gfx_measurestr() for empty string

If you pass in the empty string to gfx_measurestr(), then neither of the dimension variables change.

Code:
text_w = text_h = 100;
gfx_measurestr("", text_w, text_h);
// text_w == 100 && text_h == 100
I don't know what values they should have (0?) but remaining unchanged caused me a bit of trouble.

I'm on Windows 10 (REAPER v5.23/x64 rev 207a2c).

Last edited by geraintluff; 08-26-2016 at 05:35 PM. Reason: Added REAPER platform/version info
geraintluff is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.