• Jamey Sharp's avatar
    Move each screen's root-window pointer into ScreenRec. · e7fae9ec
    Jamey Sharp authored
    Many references to the WindowTable array already had the corresponding
    screen pointer handy, which meant they usually looked like
    "WindowTable[pScreen->myNum]". Adding a field to ScreenRec instead of
    keeping this information in a parallel array simplifies those
    expressions, and eliminates a MAXSCREENS-sized array.
    
    Since dix uses this data, a screen private entry isn't appropriate.
    
    xf86-video-dummy currently uses WindowTable, so it needs to be updated
    to reflect this change.
    Signed-off-by: Jamey Sharp's avatarJamey Sharp <jamey@minilop.net>
    Reviewed-by: default avatarTiago Vignatti <tiago.vignatti@nokia.com>
    Tested-by: Tiago Vignatti <tiago.vignatti@nokia.com> (i686 GNU/Linux)
    e7fae9ec
xf86Rotate.c 14.1 KB