~brandontschaefer/libsdl/mir-support1.2

« back to all changes in this revision

Viewing changes to debian/patches/sdl-check-for-SDL_VIDEO_X11_BACKINGSTORE.patch

  • Committer: Package Import Robot
  • Author(s): Steve Langasek, Timo Jyrinki
  • Date: 2014-05-06 10:04:08 UTC
  • mfrom: (48.1.2 trunk)
  • Revision ID: package-import@ubuntu.com-20140506100408-56mh5f130j0gg1xg
Tags: 1.2.15-9ubuntu2
* Restore accidentally-clobbered changes from 1.2.15-8ubuntu2.

[ Timo Jyrinki ]
* debian/patches/sdl-check-for-SDL_VIDEO_X11_BACKINGSTORE.patch:
  - Restore old backingstore behavior to prevent tearing
    (LP: #1280665)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- a/src/video/x11/SDL_x11video.c
 
2
+++ b/src/video/x11/SDL_x11video.c
 
3
@@ -1088,10 +1088,8 @@
 
4
                }
 
5
        }
 
6
 
 
7
-#if 0 /* This is an experiment - are the graphics faster now? - nope. */
 
8
        if ( SDL_getenv("SDL_VIDEO_X11_BACKINGSTORE") )
 
9
-#endif
 
10
-       /* Cache the window in the server, when possible */
 
11
+       /* Cache the window in the server when possible, on request */
 
12
        {
 
13
                Screen *xscreen;
 
14
                XSetWindowAttributes a;