changeset 2922:0919c2b82109

C++: Accidentally clobbered some required code in that last commit.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 29 Dec 2022 10:10:48 +0000
parents 235fef840df2
children 969cc3b8bec2
files dw.hpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dw.hpp	Thu Dec 29 10:06:23 2022 +0000
+++ b/dw.hpp	Thu Dec 29 10:10:48 2022 +0000
@@ -795,6 +795,8 @@
     }
     Pixmap(Render *window, const char *filename) { 
         SetHPIXMAP(dw_pixmap_new_from_file(window ? window->GetHWND() : DW_NOHWND, filename));
+        pwidth = hpixmap ? DW_PIXMAP_WIDTH(hpixmap) : 0;
+        pheight = hpixmap ? DW_PIXMAP_HEIGHT(hpixmap) : 0;
         hpmprot = false;
     }
     Pixmap(HPIXMAP hpm) {