mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-10 05:33:45 -04:00
hdspmixer: fix drawing problems with black background
- use foreground color instead of black - HDSPMixerSelector: set colors before setting labels Signed-off-by: Tim Blechmann <tim@klingt.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
210cb5f447
commit
c975369874
4 changed files with 5 additions and 5 deletions
|
|
@ -48,7 +48,7 @@ HDSPMixerAboutText::HDSPMixerAboutText(int x, int y, int w, int h):Fl_Widget(x,
|
||||||
|
|
||||||
void HDSPMixerAboutText::draw()
|
void HDSPMixerAboutText::draw()
|
||||||
{
|
{
|
||||||
fl_color(FL_BLACK);
|
fl_color(FL_FOREGROUND_COLOR);
|
||||||
fl_font(FL_HELVETICA, 10);
|
fl_font(FL_HELVETICA, 10);
|
||||||
fl_draw(text, x(), y(), w(), h(), FL_ALIGN_LEFT);
|
fl_draw(text, x(), y(), w(), h(), FL_ALIGN_LEFT);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ void HDSPMixerIOMixer::draw()
|
||||||
Fl_Widget *const* a = array();
|
Fl_Widget *const* a = array();
|
||||||
if (damage() & ~FL_DAMAGE_CHILD) {
|
if (damage() & ~FL_DAMAGE_CHILD) {
|
||||||
draw_background();
|
draw_background();
|
||||||
fl_color(FL_BLACK);
|
fl_color(FL_FOREGROUND_COLOR);
|
||||||
fl_font(FL_HELVETICA, 8);
|
fl_font(FL_HELVETICA, 8);
|
||||||
fl_draw(channel_name.str().c_str(), x()+4, y()+225, 27, 9, FL_ALIGN_CENTER);
|
fl_draw(channel_name.str().c_str(), x()+4, y()+225, 27, 9, FL_ALIGN_CENTER);
|
||||||
for (int i=children(); i--;) {
|
for (int i=children(); i--;) {
|
||||||
|
|
|
||||||
|
|
@ -303,7 +303,7 @@ void HDSPMixerOutput::draw()
|
||||||
Fl_Widget*const* a = array();
|
Fl_Widget*const* a = array();
|
||||||
if (damage() & ~FL_DAMAGE_CHILD) {
|
if (damage() & ~FL_DAMAGE_CHILD) {
|
||||||
draw_background();
|
draw_background();
|
||||||
fl_color(FL_BLACK);
|
fl_color(FL_FOREGROUND_COLOR);
|
||||||
fl_font(FL_HELVETICA, 8);
|
fl_font(FL_HELVETICA, 8);
|
||||||
fl_draw(labels_playback[out_num], x()+4, y()+193, 27, 9, FL_ALIGN_CENTER);
|
fl_draw(labels_playback[out_num], x()+4, y()+193, 27, 9, FL_ALIGN_CENTER);
|
||||||
for (int i=children(); i--;) {
|
for (int i=children(); i--;) {
|
||||||
|
|
|
||||||
|
|
@ -164,10 +164,10 @@ HDSPMixerSelector::HDSPMixerSelector(int x, int y, int w, int h):Fl_Menu_(x, y,
|
||||||
max_dest = 0;
|
max_dest = 0;
|
||||||
selected = 0;
|
selected = 0;
|
||||||
basew = (HDSPMixerWindow *)window();
|
basew = (HDSPMixerWindow *)window();
|
||||||
setLabels();
|
|
||||||
textfont(FL_HELVETICA);
|
textfont(FL_HELVETICA);
|
||||||
textsize(8);
|
textsize(8);
|
||||||
textcolor(FL_BLACK);
|
textcolor(FL_FOREGROUND_COLOR);
|
||||||
|
setLabels();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HDSPMixerSelector::draw() {
|
void HDSPMixerSelector::draw() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue