diff --git a/src/remoteauth/remoteauthdialog.cpp b/src/remoteauth/remoteauthdialog.cpp index c59f0ed2..5ba91aec 100644 --- a/src/remoteauth/remoteauthdialog.cpp +++ b/src/remoteauth/remoteauthdialog.cpp @@ -65,29 +65,26 @@ void RemoteAuthDialog::OnFingerprint(const std::string &fingerprint) { int size = qr.getSize(); const int border = 4; + const auto module_set = "0 0 0"; + const auto module_clr = "255 255 255"; + std::ostringstream sb; - sb << "\n"; - sb << "\n"; - sb << "\n"; - sb << "\t\n"; - sb << "\t\n"; - sb << "\n"; - const auto svg = sb.str(); + const auto img = sb.str(); auto loader = Gdk::PixbufLoader::create(); - loader->write(reinterpret_cast(svg.data()), svg.size()); + loader->write(reinterpret_cast(img.data()), img.size()); loader->close(); const auto pb = loader->get_pixbuf()->scale_simple(256, 256, Gdk::INTERP_NEAREST);