diff options
author | Thomas Dinges <blender@dingto.org> | 2013-01-16 01:41:51 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-01-16 01:41:51 +0400 |
commit | faf2779ea5156a567a32de882329db0d36b7ff0f (patch) | |
tree | 846a285b9e698244e00d3570fc8ad6ac7575a1f1 /source | |
parent | 486abf01c6a08797eb398641e7c19fb334e032ff (diff) |
WM / Screenshot fix:
* Screenshot resolution was wrong on Macbook Retina (did only capture a cropped part of the screen).
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/screen/screendump.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/screen/screendump.c b/source/blender/editors/screen/screendump.c index 2982e1f21af..1763e62582a 100644 --- a/source/blender/editors/screen/screendump.c +++ b/source/blender/editors/screen/screendump.c @@ -86,8 +86,8 @@ static unsigned int *screenshot(bContext *C, int *dumpsx, int *dumpsy) 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 @@ static int screencast_exec(bContext *C, wmOperator *op) 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); |