mirror of https://github.com/stella-emu/stella.git
fixed description background color in CartRamWidget
This commit is contained in:
parent
7baa759ec9
commit
c8d7937a46
|
@ -65,13 +65,14 @@ CartRamWidget::CartRamWidget(
|
||||||
StringParser bs(desc, (fwidth - kScrollBarWidth) / myFontWidth);
|
StringParser bs(desc, (fwidth - kScrollBarWidth) / myFontWidth);
|
||||||
const StringList& sl = bs.stringList();
|
const StringList& sl = bs.stringList();
|
||||||
uInt32 lines = uInt32(sl.size());
|
uInt32 lines = uInt32(sl.size());
|
||||||
if(lines < 3) lines = 3;
|
if(lines < 2) lines = 2;
|
||||||
if(lines > maxlines) lines = maxlines;
|
if(lines > maxlines) lines = maxlines;
|
||||||
|
|
||||||
new StaticTextWidget(_boss, _font, xpos, ypos + 1, "Description ");
|
new StaticTextWidget(_boss, _font, xpos, ypos + 1, "Description ");
|
||||||
myDesc = new StringListWidget(boss, nfont, xpos+lwidth, ypos - 1,
|
myDesc = new StringListWidget(boss, nfont, xpos+lwidth, ypos - 1,
|
||||||
fwidth, lines * myLineHeight, false);
|
fwidth, lines * myLineHeight, false);
|
||||||
myDesc->setEditable(false);
|
myDesc->setEditable(false);
|
||||||
|
myDesc->setEnabled(false);
|
||||||
myDesc->setList(sl);
|
myDesc->setList(sl);
|
||||||
addFocusWidget(myDesc);
|
addFocusWidget(myDesc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue