justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: I can see item label height (bit.ly/13AWn6z) is somehow tied to mediaitem_font from ColorTheme but I just can't crack how you calculate it. Care to share the secret? And sorry for a sudden flood of questions :)
Asked by Martin (93.139.55.x) on August 5 2013, 7:29pm
Reply on August 5 2013, 7:46pm (edited at August 5 2013, 7:47pm):
    I believe it is something like:
    int texth = abs(colortheme->mediaitem_font.lfHeight)*11/8;
    if (laneh < 16) texth-=2;
    

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS