View | Details | Raw Unified | Return to bug 12507
Collapse All | Expand All

(-)a/randr/rrxinerama.c (-7 / +7 lines)
Lines 148-159 ProcRRXineramaGetState(ClientPtr client) Link Here
148
}
148
}
149
149
150
static Bool
150
static Bool
151
RRXineramaScreenActive (ScreenPtr pScreen)
152
{
153
    return rrGetScrPriv(pScreen) != NULL;
154
}
155
156
static Bool
157
RRXineramaCrtcActive (RRCrtcPtr crtc)
151
RRXineramaCrtcActive (RRCrtcPtr crtc)
158
{
152
{
159
    return crtc->mode != NULL && crtc->numOutputs > 0;
153
    return crtc->mode != NULL && crtc->numOutputs > 0;
Lines 165-171 RRXineramaScreenCount (ScreenPtr pScreen) Link Here
165
    int	i, n;
159
    int	i, n;
166
    
160
    
167
    n = 0;
161
    n = 0;
168
    if (RRXineramaScreenActive (pScreen))
162
    if (rrGetScrPriv (pScreen))
169
    {
163
    {
170
	rrScrPriv(pScreen);
164
	rrScrPriv(pScreen);
171
	for (i = 0; i < pScrPriv->numCrtcs; i++)
165
	for (i = 0; i < pScrPriv->numCrtcs; i++)
Lines 175-180 RRXineramaScreenCount (ScreenPtr pScreen) Link Here
175
    return n;
169
    return n;
176
}
170
}
177
171
172
static Bool
173
RRXineramaScreenActive (ScreenPtr pScreen)
174
{
175
    return RRXineramaScreenCount (pScreen) > 0;
176
}
177
178
int
178
int
179
ProcRRXineramaGetScreenCount(ClientPtr client)
179
ProcRRXineramaGetScreenCount(ClientPtr client)
180
{
180
{

Return to bug 12507