File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -6749,6 +6749,11 @@ void QgisApp::userCenter()
6749
6749
else
6750
6750
mDizzyTimer ->start ( 100 );
6751
6751
}
6752
+ else if ( mCoordsEdit ->text () == " retro" )
6753
+ {
6754
+ mMapCanvas ->setProperty ( " retro" , !mMapCanvas ->property ( " retro" ).toBool () );
6755
+ refreshMapCanvas ();
6756
+ }
6752
6757
6753
6758
QStringList parts = mCoordsEdit ->text ().split ( ' ,' );
6754
6759
if ( parts.size () != 2 )
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ QgsMapCanvasMap::~QgsMapCanvasMap()
35
35
void QgsMapCanvasMap::setContent ( const QImage& image, const QgsRectangle& rect )
36
36
{
37
37
mImage = image;
38
+
39
+ // For true retro fans: this is approximately how the graphics looked like in 1990
40
+ if ( mMapCanvas ->property ( " retro" ).toBool () )
41
+ mImage = mImage .scaled ( mImage .width () / 3 , mImage .height () / 3 )
42
+ .convertToFormat ( QImage::Format_Indexed8, Qt::OrderedDither | Qt::OrderedAlphaDither );
43
+
38
44
setRect ( rect );
39
45
}
40
46
You can’t perform that action at this time.
0 commit comments