PiClock icon indicating copy to clipboard operation
PiClock copied to clipboard

Radar has lines across the maps.

Open lstew452a opened this issue 3 years ago • 2 comments

Has anybody noticed this?

lstew452a avatar Jun 06 '22 13:06 lstew452a

I do, very occasionally, see diagonal broken lines but the rest of the radar image seems correct. They usually clear themselves after around 1 - 2 hours so I think it's a corrupted download. I am using the Serbrynden fork.

feh123 avatar Jun 06 '22 17:06 feh123

I see these constantly.... What it seems like is the downloaded images that are making up the moving image are not aligning properly...

taftr1 avatar Aug 25 '22 17:08 taftr1

@n0bel Finally solved! When constructing a QImage object, Qt offers this warning:

"Warning: This will create a QImage with uninitialized data. Call fill)() to fill the image with an appropriate pixel value before drawing onto it with QPainter." https://doc.qt.io/qt-5/qimage.html#QImage-2

Under def combineTiles(self) after ii = QImage(self.tilesWidth * 256, self.tilesHeight * 256, QImage.Format_ARGB32) insert ii.fill(Qt.transparent) to solve everything.

SerBrynden avatar Apr 15 '23 23:04 SerBrynden