randr: fix "set but unused" warnings
rrcrtc.c: In function 'RRCrtcDetachScanoutPixmap': rrcrtc.c:366:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable] rrcrtc.c: In function 'rrCheckPixmapBounding': rrcrtc.c:505:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable] rrcrtc.c:445:9: warning: unused variable 'i' [-Wunused-variable] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
This commit is contained in:
parent
90642948cc
commit
592d35aef0
|
@ -363,13 +363,12 @@ void
|
||||||
RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc)
|
RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc)
|
||||||
{
|
{
|
||||||
ScreenPtr master = crtc->pScreen->current_master;
|
ScreenPtr master = crtc->pScreen->current_master;
|
||||||
int ret;
|
|
||||||
PixmapPtr mscreenpix;
|
PixmapPtr mscreenpix;
|
||||||
rrScrPriv(crtc->pScreen);
|
rrScrPriv(crtc->pScreen);
|
||||||
|
|
||||||
mscreenpix = master->GetScreenPixmap(master);
|
mscreenpix = master->GetScreenPixmap(master);
|
||||||
|
|
||||||
ret = pScrPriv->rrCrtcSetScanoutPixmap(crtc, NULL);
|
pScrPriv->rrCrtcSetScanoutPixmap(crtc, NULL);
|
||||||
if (crtc->scanout_pixmap) {
|
if (crtc->scanout_pixmap) {
|
||||||
master->StopPixmapTracking(mscreenpix, crtc->scanout_pixmap);
|
master->StopPixmapTracking(mscreenpix, crtc->scanout_pixmap);
|
||||||
/*
|
/*
|
||||||
|
@ -442,7 +441,7 @@ rrCheckPixmapBounding(ScreenPtr pScreen,
|
||||||
RRCrtcPtr rr_crtc, int x, int y, int w, int h)
|
RRCrtcPtr rr_crtc, int x, int y, int w, int h)
|
||||||
{
|
{
|
||||||
RegionRec root_pixmap_region, total_region, new_crtc_region;
|
RegionRec root_pixmap_region, total_region, new_crtc_region;
|
||||||
int i, c;
|
int c;
|
||||||
BoxRec newbox;
|
BoxRec newbox;
|
||||||
BoxPtr newsize;
|
BoxPtr newsize;
|
||||||
ScreenPtr slave;
|
ScreenPtr slave;
|
||||||
|
@ -502,10 +501,8 @@ rrCheckPixmapBounding(ScreenPtr pScreen,
|
||||||
new_height == screen_pixmap->drawable.height) {
|
new_height == screen_pixmap->drawable.height) {
|
||||||
ErrorF("adjust shatters %d %d\n", newsize->x1, newsize->x2);
|
ErrorF("adjust shatters %d %d\n", newsize->x1, newsize->x2);
|
||||||
} else {
|
} else {
|
||||||
int ret;
|
|
||||||
rrScrPriv(pScreen);
|
rrScrPriv(pScreen);
|
||||||
ret = pScrPriv->rrScreenSetSize(pScreen,
|
pScrPriv->rrScreenSetSize(pScreen, new_width, new_height, 0, 0);
|
||||||
new_width, new_height, 0, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set shatters TODO */
|
/* set shatters TODO */
|
||||||
|
|
Loading…
Reference in New Issue