Changeset 11990 in osm for applications/editors/josm/plugins/wmsplugin
- Timestamp:
- 2008-11-19T19:09:03+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/webkit-image.cpp
r11988 r11990 34 34 QImage im = QPixmap::grabWidget(view).toImage(); 35 35 QRgb white = QColor(255,255,255).rgb(); 36 /* sometimes the white is shifted one bit */ 37 QRgb white2 = QColor(254,254,254).rgb(); 36 38 37 39 /* didn't find a way to reduce image directly, so we scan for white background */ … … 44 46 { 45 47 QRgb p = im.pixel(x, y); 46 if(p != white && p) 48 if(p != white && p != white2 & p) 47 49 iswhite = false; 48 50 } … … 56 58 { 57 59 QRgb p = im.pixel(x, y); 58 if(p != white && p) 60 if(p != white && p != white2 && p) 59 61 iswhite = false; 60 62 }
Note:
See TracChangeset
for help on using the changeset viewer.