summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/registrytool.cpp1
-rw-r--r--src/ui/dialog/filedialogimpl-win32.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/registrytool.cpp b/src/registrytool.cpp
index 8bc9cbebf..2017f50c7 100644
--- a/src/registrytool.cpp
+++ b/src/registrytool.cpp
@@ -27,6 +27,7 @@
#include <windows.h>
#include <string>
+#include <cstdio>
#include "registrytool.h"
diff --git a/src/ui/dialog/filedialogimpl-win32.cpp b/src/ui/dialog/filedialogimpl-win32.cpp
index d22a368f2..529288031 100644
--- a/src/ui/dialog/filedialogimpl-win32.cpp
+++ b/src/ui/dialog/filedialogimpl-win32.cpp
@@ -1373,10 +1373,10 @@ void FileOpenDialogImplWin32::render_preview()
if(_preview_bitmap_image) // Is the image a pixbuf?
{
// Set the transformation
- const Matrix matrix = {
+ const Cairo::Matrix matrix(
scaleFactor, 0,
0, scaleFactor,
- svgX, svgY };
+ svgX, svgY);
context->set_matrix (matrix);
// Render the image