summaryrefslogtreecommitdiff
path: root/src/savage_video.c
diff options
context:
space:
mode:
authorAlex Deucher <alex@t41p.(none)>2006-11-22 11:56:41 -0500
committerAlex Deucher <alex@t41p.(none)>2006-11-22 11:56:41 -0500
commit37240b81daa4ed46c27e439d22b6fd9909dac249 (patch)
treedd1b78be48e911b316f5c884b287641c8fa119bf /src/savage_video.c
parent4f8660473ba079f98f097abd72ce2647c345d7cd (diff)
clean up some leftover cruft.
Diffstat (limited to 'src/savage_video.c')
-rw-r--r--src/savage_video.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/savage_video.c b/src/savage_video.c
index ed45b0f..64dcef1 100644
--- a/src/savage_video.c
+++ b/src/savage_video.c
@@ -1378,39 +1378,7 @@ SavageAllocateMemory(
}
offset = linear->offset * cpp;
}
-#if 0
- if(area) {
- if((area->box.y2 - area->box.y1) >= numlines)
- return area;
-
- if(xf86ResizeOffscreenArea(area, pScrn->displayWidth, numlines))
- return area;
-
- xf86FreeOffscreenArea(area);
- }
-
- pScreen = screenInfo.screens[pScrn->scrnIndex];
-
- xf86PurgeUnlockedOffscreenAreas(pScreen);
- new_area = xf86AllocateOffscreenArea(pScreen, pScrn->displayWidth,
- numlines, 0, NULL, NULL, NULL);
- if(!new_area) {
- int max_w, max_h;
-
- xf86QueryLargestOffscreenArea(pScreen, &max_w, &max_h, 0,
- FAVOR_WIDTH_THEN_AREA, PRIORITY_EXTREME);
-
- if((max_w < pScrn->displayWidth) || (max_h < numlines))
- return NULL;
-
- xf86PurgeUnlockedOffscreenAreas(pScreen);
- new_area = xf86AllocateOffscreenArea(pScreen, pScrn->displayWidth,
- numlines, 0, NULL, NULL, NULL);
- }
-
- return new_area;
-#endif
return offset;
}