Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix issue #830 fullscreen='auto' does not create a fullscreen window #831

Closed
wants to merge 9 commits into from

2 participants

@hansent

fix issue #830 fullscreen='auto' does not create a fullscreen window

@tito
Owner

Actually, the issue is more complex than that: activating auto on fullscreen doesn't works as intended on ubuntu. I guess the wanted fix was for osx ?

@tito
Owner

Ok my bad, it works.

@tito tito closed this in 4150fcf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 30, 2012
  1. @hansent
Commits on Dec 4, 2012
  1. @tito

    osx: move to 2.7 by default.

    tito authored
  2. @tito
  3. @tito
  4. @tito

    video progressbar: fix graphic glitch when duration is not known (htt…

    tito authored
    …p streaming report -1e-09...
  5. @hansent

    Merge branch 'master' of github.com:kivy/kivy

    hansent authored
    # Please enter a commit message to explain why this merge is necessary,
    # especially if it merges an updated upstream into a topic branch.
    #
    # Lines starting with '#' will be ignored, and an empty message aborts
    # the commit.
  6. @tito
  7. @tito
  8. @hansent
This page is out of date. Refresh to see the latest.
View
13 doc/sources/guide/packaging-macosx.rst
@@ -21,6 +21,17 @@ command must be accessible from the command line.
Then, download and decompress the PyInstaller 2.0.
+.. warning::
+
+ It seem that latest PyInstaller has a bug when reading Mach-O binaries.
+ (http://www.pyinstaller.org/ticket/614). To fix the issues, you can::
+
+ cd pyinstaller-2.0/PyInstaller/lib/macholib
+ curl -O https://bitbucket.org/ronaldoussoren/macholib/raw/e32d04b5361950a9343ca453d75602b65787f290/macholib/mach_o.py
+
+ And then, the issue should be gone. It should be ok in the 2.1.
+
+
.. _mac_Create-the-spec-file:
Create the spec file
@@ -92,7 +103,7 @@ adding one more argument to the `COLLECT()` method::
gst_plugin_path = os.environ.get('GST_PLUGIN_PATH').split(':')[0]
coll = COLLECT( exe, Tree('../kivy/examples/demo/touchtracer/'),
- Tree(join(gst_plugin_path, '..')),
+ Tree(os.path.join(gst_plugin_path, '..')),
a.binaries,
#...
)
View
11 kivy/core/video/video_gstreamer.py
@@ -78,6 +78,7 @@ def _gst_init(self):
self._videosink.set_property('caps', gst.Caps(_VIDEO_CAPS))
self._videosink.set_property('async', True)
self._videosink.set_property('drop', True)
+ self._videosink.set_property('qos', True)
self._videosink.set_property('emit-signals', True)
self._videosink.connect('new-buffer', partial(
_gst_new_buffer, ref(self)))
@@ -107,11 +108,13 @@ def _update_texture(self, buf):
self._texture.blit_buffer(buf.data, size=size, colorfmt='rgb')
def _update(self, dt):
+ buf = None
with self._buffer_lock:
- if self._buffer is not None:
- self._update_texture(self._buffer)
- self._buffer = None
- self.dispatch('on_frame')
+ buf = self._buffer
+ self._buffer = None
+ if buf is not None:
+ self._update_texture(buf)
+ self.dispatch('on_frame')
def unload(self):
self._playbin.set_state(gst.STATE_NULL)
View
2  kivy/core/window/window_pygame.py
@@ -85,7 +85,7 @@ def create_window(self, *largs):
self._pos = (0, 0)
environ['SDL_VIDEO_WINDOW_POS'] = '%d,%d' % self._pos
- elif self.fullscreen is True:
+ elif self.fullscreen in ('auto', True):
Logger.debug('WinPygame: Set window to fullscreen mode')
self.flags |= pygame.FULLSCREEN
View
2  kivy/data/style.kv
@@ -738,7 +738,7 @@
VideoPlayerProgressBar:
video: root
- max: root.duration or 1
+ max: max(root.duration, root.position, 1)
value: root.position
Widget:
View
4 kivy/tools/packaging/osx/kivy.sh
@@ -14,9 +14,9 @@ export GST_PLUGIN_PATH=${SCRIPT_PATH}/lib/gst-plugins:$GST_PLUGIN_PATH
# That'd mean however that other libraries can't be found anymore. So if the user has
# a broken pygame installation, it's not our fault...
#
-# Also, hardcode the link to python 2.6 for now. If you don't want that, just adjust it.
+# Also, hardcode the link to python 2.7 for now. If you don't want that, just adjust it.
# We're doing that because the situation of Python on OSX is less than ideal and users
# tend to install Python from arbitrary resources. To ensure smooth execution, we're
# enforcing the usage of the Python version that we actually built against.
# If you know what you're doing you can easily change this.
-exec /System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 "$@"
+exec /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 "$@"
View
5 kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py
@@ -15,8 +15,13 @@
chdir(dirname(sys.argv[0]))
root = join(dirname(sys.argv[0]), root)
+
sys.path += [join(root, '_libs')]
+if sys.platform == 'darwin':
+ sitepackages = join(root, '..', 'sitepackages')
+ sys.path += [sitepackages, join(sitepackages, 'gst-0.10')]
+
environ['GST_PLUGIN_PATH'] = join(root, '..', 'gst-plugins')
environ['KIVY_DATA_DIR'] = join(root, 'data')
environ['KIVY_EXTS_DIR'] = join(root, 'extensions')
Something went wrong with that request. Please try again.