mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
treewide: use inline helper for accessing first screen
Instead of everybody directly accessing the (internal) screenInfo struct, let those consumers only interested in first screen use a little helper. Also caching the value if it's needed several times. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
d0a155c824
commit
6bc438ab5a
@@ -32,6 +32,7 @@ SOFTWARE.
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "dix/rpcbuf_priv.h"
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "Xext/xvdix_priv.h"
|
||||
#include "Xext/panoramiX.h"
|
||||
#include "Xext/panoramiXsrv.h"
|
||||
@@ -1543,7 +1544,7 @@ void
|
||||
XineramifyXv(void)
|
||||
{
|
||||
XvScreenPtr xvsp0 =
|
||||
dixLookupPrivate(&screenInfo.screens[0]->devPrivates, XvGetScreenKey());
|
||||
dixLookupPrivate(&(dixGetFirstScreenPtr()->devPrivates), XvGetScreenKey());
|
||||
XvAdaptorPtr MatchingAdaptors[MAXSCREENS];
|
||||
int i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user