diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-06-09 09:45:03 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-06-09 09:45:03 +0200 |
commit | 21554166b294470ac593a1a90c82d1b4fe75c61e (patch) | |
tree | 4fe4c5782a0bbcef3e3309633e0c2ee7e71c4e2a /plugingui/textedit.cc | |
parent | 108a94eaefc1e9ccfe316d4ce9a30e3bd532af5a (diff) |
Add ctor for creating colours from four unsigned char values.
Diffstat (limited to 'plugingui/textedit.cc')
-rw-r--r-- | plugingui/textedit.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/textedit.cc b/plugingui/textedit.cc index fd2f891..b6945de 100644 --- a/plugingui/textedit.cc +++ b/plugingui/textedit.cc @@ -135,7 +135,7 @@ void TextEdit::preprocessText() void TextEdit::repaintEvent(RepaintEvent* repaintEvent) { - if(needs_preprocessing) + if(needs_preprocessing) { preprocessText(); } @@ -153,7 +153,7 @@ void TextEdit::repaintEvent(RepaintEvent* repaintEvent) box.setSize(width(), height()); p.drawImage(0, 0, box); - p.setColour(Colour(183.0 / 255.0, 219.0 / 255.0, 255.0 / 255.0, 1)); + p.setColour(Colour(183.0f/255.0f, 219.0f/255.0f, 255.0f/255.0f, 1.0f)); int ypos = font.textHeight() + y_border; |