diff options
author | Michel Dänzer <daenzer@vmware.com> | 2010-10-27 12:12:04 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2010-10-27 12:48:48 +0200 |
commit | d31046ba6c8eee9b7decc3875697d37c38bc38f3 (patch) | |
tree | 922d81d3edc686c88d1e28083bc998ca3a130364 | |
parent | 4dd7f835c17b00707f1d8d4e36a24380ba52761e (diff) |
Re-use result of GetScreenPixmap call.
Fixes compile warning due to local variable ppix being unused when building
against current xserver Git.
-rw-r--r-- | src/drmmode_display.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 37010cd8..cbbfa50c 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -1134,8 +1134,8 @@ drmmode_xf86crtc_resize (ScrnInfoPtr scrn, int width, int height) goto fail; if (!info->r600_shadow_fb) { - radeon_set_pixmap_bo(screen->GetScreenPixmap(screen), info->front_bo); - screen->ModifyPixmapHeader(screen->GetScreenPixmap(screen), + radeon_set_pixmap_bo(ppix, info->front_bo); + screen->ModifyPixmapHeader(ppix, width, height, -1, -1, pitch * cpp, NULL); } else { if (radeon_bo_map(info->front_bo, 1)) @@ -1145,7 +1145,7 @@ drmmode_xf86crtc_resize (ScrnInfoPtr scrn, int width, int height) goto fail; free(info->fb_shadow); info->fb_shadow = fb_shadow; - screen->ModifyPixmapHeader(screen->GetScreenPixmap(screen), + screen->ModifyPixmapHeader(ppix, width, height, -1, -1, pitch * cpp, info->fb_shadow); } |