~ubuntu-branches/ubuntu/natty/xserver-xorg-video-vesa/natty

« back to all changes in this revision

Viewing changes to debian/patches/101-fedora-vesa-1.2.1-randr-crash.patch

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2007-03-26 17:50:40 UTC
  • Revision ID: james.westby@ubuntu.com-20070326175040-e5jagsiur00cnygq
Tags: 1:1.3.0-1ubuntu3
* debian/patches:
  100-fedora-vesa-1.3.0-mode-heuristics.patch
   - Fix the mode selection, replaces previous range-hack patch.
     (LP: #89853) 
  101-fedora-vesa-1.2.1-randr-crash.patch
   - Fix a crash when changing the resolution (LP: #91591)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- xf86-video-vesa-1.2.1/src/vesa.c.randr-crash        2006-06-03 05:46:00.000000000 -0400
 
2
+++ xf86-video-vesa-1.2.1/src/vesa.c    2006-07-28 16:56:44.000000000 -0400
 
3
@@ -1020,15 +1020,9 @@
 
4
 VESASwitchMode(int scrnIndex, DisplayModePtr pMode, int flags)
 
5
 {
 
6
     ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
 
7
-    VESAPtr pVesa = VESAGetRec(pScrn);
 
8
     Bool ret;
 
9
 
 
10
-    if (pVesa->ModeSetClearScreen) 
 
11
-       pScrn->EnableDisableFBAccess(scrnIndex,FALSE);
 
12
-    ret = VESASetMode(xf86Screens[scrnIndex], pMode);
 
13
-    if (pVesa->ModeSetClearScreen) 
 
14
-       pScrn->EnableDisableFBAccess(scrnIndex,TRUE);
 
15
-    return ret;
 
16
+    return VESASetMode(pScrn, pMode);
 
17
 }
 
18
 
 
19
 /* Set a graphics mode */