mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 06:32:42 +00:00
State bar shows alpha value when a color is being shown.
This commit is contained in:
parent
e145ea63d7
commit
f0c2ae6991
@ -342,16 +342,17 @@ bool StatusBar::msg_proc(JMessage msg)
|
||||
x += (32+4)*jguiscale();
|
||||
|
||||
// Draw color description
|
||||
char buf[256]; // TODO warning buffer overflow
|
||||
char buf[512]; // TODO warning buffer overflow
|
||||
color_to_formalstring(app_get_current_image_type(),
|
||||
m_color, buf, sizeof(buf), true);
|
||||
if (m_alpha < 255)
|
||||
usprintf(buf+ustrlen(buf), ", Alpha %d", m_alpha);
|
||||
|
||||
textout_ex(doublebuffer, this->getFont(), buf,
|
||||
x, (rc->y1+rc->y2)/2-text_height(this->getFont())/2,
|
||||
text_color, -1);
|
||||
|
||||
x += ji_font_text_len(this->getFont(), buf) + 4*jguiscale();
|
||||
|
||||
}
|
||||
|
||||
// Status bar text
|
||||
|
Loading…
x
Reference in New Issue
Block a user