diff options
author | marha <marha@users.sourceforge.net> | 2012-07-12 07:54:33 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-07-12 07:54:33 +0200 |
commit | 0d90d39cece3eb381fe59941059eca1782b556b4 (patch) | |
tree | 752bee3a7f4ed2d1a212714fd55be38dbfaeb7a4 /xorg-server/hw/xfree86/modes/xf86Modes.c | |
parent | 2bb6be5a068a918bf74a18a41ed1f2537cd68382 (diff) | |
parent | 165450290d6c26756ede118f52ba2164abce7c9a (diff) | |
download | vcxsrv-0d90d39cece3eb381fe59941059eca1782b556b4.tar.gz vcxsrv-0d90d39cece3eb381fe59941059eca1782b556b4.tar.bz2 vcxsrv-0d90d39cece3eb381fe59941059eca1782b556b4.zip |
Merge remote-tracking branch 'origin/released'
Diffstat (limited to 'xorg-server/hw/xfree86/modes/xf86Modes.c')
-rw-r--r-- | xorg-server/hw/xfree86/modes/xf86Modes.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xorg-server/hw/xfree86/modes/xf86Modes.c b/xorg-server/hw/xfree86/modes/xf86Modes.c index 2a6d26756..c4a3eb0a3 100644 --- a/xorg-server/hw/xfree86/modes/xf86Modes.c +++ b/xorg-server/hw/xfree86/modes/xf86Modes.c @@ -191,6 +191,21 @@ xf86SetModeCrtc(DisplayModePtr p, int adjustFlags) } /** + * Fills in a copy of mode, removing all stale pointer references. + * xf86ModesEqual will return true when comparing with original mode. + */ +void +xf86SaveModeContents(DisplayModePtr intern, const DisplayModeRec *mode) +{ + *intern = *mode; + intern->prev = intern->next = NULL; + intern->name = NULL; + intern->PrivSize = 0; + intern->PrivFlags = 0; + intern->Private = NULL; +} + +/** * Allocates and returns a copy of pMode, including pointers within pMode. */ DisplayModePtr |