@@ -48,25 +48,25 @@ static bool DrawScrollingStatusText(cons
if (d + Utf8CharLen(c) >= last) break;
d += Utf8Encode(d, c);
}
*d = '\0';
DrawPixelInfo tmp_dpi;
if (!FillDrawPixelInfo(&tmp_dpi, 141, 1, width, 11)) return true;
DrawPixelInfo *old_dpi = _cur_dpi;
_cur_dpi = &tmp_dpi;
int x = DrawString(pos, pos + width, 0, buffer, TC_LIGHT_BLUE);
int x = DrawString(pos, INT16_MAX, 0, buffer, TC_LIGHT_BLUE);
_cur_dpi = old_dpi;
return x > 0;
enum StatusbarWidget {
SBW_LEFT, ///< left part of the statusbar; date is shown there
SBW_MIDDLE, ///< middle part; current news or company name or *** SAVING *** or *** PAUSED ***
SBW_RIGHT, ///< right part; bank balance
};
struct StatusBarWindow : Window {
Status change: