[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53827] trunk/blender/source/blender/ editors/screen/screendump.c: WM / Screenshot fix:
Thomas Dinges
blender at dingto.org
Tue Jan 15 22:41:52 CET 2013
Revision: 53827
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53827
Author: dingto
Date: 2013-01-15 21:41:51 +0000 (Tue, 15 Jan 2013)
Log Message:
-----------
WM / Screenshot fix:
* Screenshot resolution was wrong on Macbook Retina (did only capture a cropped part of the screen).
Modified Paths:
--------------
trunk/blender/source/blender/editors/screen/screendump.c
Modified: trunk/blender/source/blender/editors/screen/screendump.c
===================================================================
--- trunk/blender/source/blender/editors/screen/screendump.c 2013-01-15 20:13:19 UTC (rev 53826)
+++ trunk/blender/source/blender/editors/screen/screendump.c 2013-01-15 21:41:51 UTC (rev 53827)
@@ -86,8 +86,8 @@
x = 0;
y = 0;
- *dumpsx = win->sizex;
- *dumpsy = win->sizey;
+ *dumpsx = WM_window_pixels_x(win);
+ *dumpsy = WM_window_pixels_y(win);
if (*dumpsx && *dumpsy) {
@@ -457,8 +457,8 @@
wmWindow *win = CTX_wm_window(C);
sj->x = 0;
sj->y = 0;
- sj->dumpsx = win->sizex;
- sj->dumpsy = win->sizey;
+ sj->dumpsx = WM_window_pixels_x(win);
+ sj->dumpsy = WM_window_pixels_y(win);
}
else {
ScrArea *curarea = CTX_wm_area(C);
More information about the Bf-blender-cvs
mailing list