FLTK logo

[master] e0bf25d - Remove useless if (...)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] e0bf25d - Remove useless if (...) "Albrecht Schlosser" Sep 01, 2022  
 
commit e0bf25d91127eb45428f14cb6dbbbd02956acd45
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Thu Sep 1 17:12:10 2022 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Thu Sep 1 17:12:10 2022 +0200

    Remove useless if (...)

 src/Fl_Graphics_Driver.cxx | 2 --
 1 file changed, 2 deletions(-)

diff --git src/Fl_Graphics_Driver.cxx src/Fl_Graphics_Driver.cxx
index 5ba7853..159a76b 100644
--- src/Fl_Graphics_Driver.cxx
+++ src/Fl_Graphics_Driver.cxx
@@ -137,9 +137,7 @@ void Fl_Graphics_Driver::global_gc()
 /** see Fl::set_color(Fl_Color, unsigned) */
 void Fl_Graphics_Driver::set_color(Fl_Color i, unsigned c)
 {
-  if (fl_cmap[i] != c) {
     fl_cmap[i] = c;
-  }
 }
 
 
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.