@@ -24,11 +24,11 @@ Term::style Term::Window_24bit::get_style(size_t x, size_t y) {
2424 return m_style[(y - 1 ) * w + (x - 1 )];
2525}
2626
27- size_t Term::Window_24bit::get_w () {
27+ size_t Term::Window_24bit::get_w () const {
2828 return w;
2929}
3030
31- size_t Term::Window_24bit::get_h () {
31+ size_t Term::Window_24bit::get_h () const {
3232 return h;
3333}
3434
@@ -260,14 +260,14 @@ std::string Term::Window_24bit::render(int x0, int y0, bool term) {
260260 }
261261 }
262262
263- if (current_fg_reset == false ) {
263+ if (! current_fg_reset) {
264264 if (!rgb_equal (current_fg, get_fg (i, j))) {
265265 current_fg = get_fg (i, j);
266266 update_fg = true ;
267267 }
268268 }
269269
270- if (current_fg_reset == false ) {
270+ if (! current_fg_reset) {
271271 if (!rgb_equal (current_bg, get_bg (i, j))) {
272272 current_bg = get_bg (i, j);
273273 update_bg = true ;
@@ -277,12 +277,12 @@ std::string Term::Window_24bit::render(int x0, int y0, bool term) {
277277 current_style = get_style (i, j);
278278 update_style = true ;
279279 if (current_style == style::reset) {
280- // style::reset resets fg and bg colors too, we have to
280+ // style::reset: reset fg and bg colors too, we have to
281281 // set them again if they are non-default, but if fg or
282282 // bg colors are reset, we do not update them, as
283283 // style::reset already did that.
284- update_fg = ( current_fg_reset == false ) ;
285- update_bg = ( current_bg_reset == false ) ;
284+ update_fg = ! current_fg_reset;
285+ update_bg = ! current_bg_reset;
286286 }
287287 }
288288 // Set style first, as style::reset will reset colors too
@@ -334,11 +334,11 @@ Term::style Term::Window::get_style(size_t x, size_t y) {
334334 return m_style[(y - 1 ) * w + (x - 1 )];
335335}
336336
337- size_t Term::Window::get_w () {
337+ size_t Term::Window::get_w () const {
338338 return w;
339339}
340340
341- size_t Term::Window::get_h () {
341+ size_t Term::Window::get_h () const {
342342 return h;
343343}
344344
@@ -520,7 +520,7 @@ std::string Term::Window::render(int x0, int y0, bool term) {
520520 current_style = get_style (i, j);
521521 update_style = true ;
522522 if (current_style == style::reset) {
523- // style::reset resets fg and bg colors too, we have to
523+ // style::reset: resets fg and bg colors too, we have to
524524 // set them again if they are non-default, but if fg or
525525 // bg colors are reset, we do not update them, as
526526 // style::reset already did that.
0 commit comments