diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-07-26 20:59:01 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-07-26 20:59:01 +0200 |
commit | b9cf0792120d3c733b7509ba62f3f553ec119028 (patch) | |
tree | 80f8fb5a1303294d27ac1c33b362143cc6b51a12 /src/image.cc | |
parent | 2b36ce7609bda24b6e5a8f5fb5e20852b2db2cb4 (diff) |
Use FLTK reported DPI for SVG images
Diffstat (limited to 'src/image.cc')
-rw-r--r-- | src/image.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/image.cc b/src/image.cc index 940942d4..c9862661 100644 --- a/src/image.cc +++ b/src/image.cc @@ -3,6 +3,7 @@ * * Copyright (C) 2005-2007 Jorge Arellano Cid <jcid@dillo.org>, * Sebastian Geerken <sgeerken@dillo.org> + * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -39,6 +40,7 @@ DilloImage *a_Image_new(void *layout, void *img_rndr, int32_t bg_color) Image->img_rndr = img_rndr; Image->width = 0; Image->height = 0; + Image->dpi = ((Layout *) layout)->dpiX(); Image->bg_color = bg_color; Image->ScanNumber = 0; Image->BitVec = NULL; |