summaryrefslogtreecommitdiffstats
path: root/src/monitor.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-14 02:19:56 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-14 02:19:56 +0100
commit09569c7798ea46da9fbc997bb4357e39534c7b64 (patch)
tree203bbfbd98d55e555988feaee884b2fb1262e9c2 /src/monitor.py
parentfix sigusr2 handling (diff)
downloadblueshift-09569c7798ea46da9fbc997bb4357e39534c7b64.tar.gz
blueshift-09569c7798ea46da9fbc997bb4357e39534c7b64.tar.bz2
blueshift-09569c7798ea46da9fbc997bb4357e39534c7b64.tar.xz
reduce allocations in vidmode
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/monitor.py')
-rw-r--r--src/monitor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/monitor.py b/src/monitor.py
index f375156..90ae603 100644
--- a/src/monitor.py
+++ b/src/monitor.py
@@ -122,7 +122,7 @@ def vidmode_get(crtc = 0, screen = 0):
if (vidmode_opened is None) or not (vidmode_opened == screen):
if vidmode_opened is not None:
vidmode_close()
- if vidmode_open(screen) == 0:
+ if vidmode_open(screen):
vidmode_opened = screen
else:
sys.exit(1)
@@ -186,7 +186,7 @@ def vidmode(*crtcs, screen = 0):
if (vidmode_opened is None) or not (vidmode_opened == screen):
if vidmode_opened is not None:
vidmode_close()
- if vidmode_open(screen) == 0:
+ if vidmode_open(screen):
vidmode_opened = screen
else:
sys.exit(1)