mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
disable question fade when using software rendering
This commit is contained in:
parent
ab57faf58e
commit
a8ce102916
2 changed files with 7 additions and 2 deletions
|
@ -406,7 +406,8 @@ please see:
|
|||
return os.path.join(self.base, "gldriver")
|
||||
|
||||
def glMode(self):
|
||||
assert not isMac
|
||||
if isMac:
|
||||
return "auto"
|
||||
|
||||
path = self._glPath()
|
||||
if not os.path.exists(path):
|
||||
|
|
|
@ -119,12 +119,16 @@ class Reviewer:
|
|||
|
||||
def revHtml(self):
|
||||
extra = self.mw.col.conf.get("reviewExtra", "")
|
||||
qFade = 100
|
||||
if self.mw.pm.glMode() == "software":
|
||||
qFade = 0
|
||||
return """
|
||||
<div id=_mark>★</div>
|
||||
<div id=_flag>⚑</div>
|
||||
<div id=qa></div>
|
||||
<script>qFade={};</script>
|
||||
{}
|
||||
""".format(extra)
|
||||
""".format(qFade, extra)
|
||||
|
||||
def _initWeb(self):
|
||||
self._reps = 0
|
||||
|
|
Loading…
Reference in a new issue