Add evas image and font caching
git-svn-id: http://www.neo1973-germany.de/svn@126 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
parent
fb27f65bcb
commit
df4b16c228
1 changed files with 6 additions and 0 deletions
|
@ -7,7 +7,11 @@ __license__ = "GPL3"
|
||||||
|
|
||||||
WIDTH = 480
|
WIDTH = 480
|
||||||
HEIGHT = 640
|
HEIGHT = 640
|
||||||
|
|
||||||
FRAMETIME = 1.0 / 20
|
FRAMETIME = 1.0 / 20
|
||||||
|
IMAGE_CACHE_SIZE = 6
|
||||||
|
FONT_CACHE_SIZE = 2
|
||||||
|
|
||||||
FULLSCREEN = True
|
FULLSCREEN = True
|
||||||
APP_TITLE = "epydial"
|
APP_TITLE = "epydial"
|
||||||
WM_INFO = ("epydial", "epydial")
|
WM_INFO = ("epydial", "epydial")
|
||||||
|
@ -390,6 +394,8 @@ class EvasCanvas(object):
|
||||||
self.evas_obj.name_class = WM_INFO
|
self.evas_obj.name_class = WM_INFO
|
||||||
self.evas_obj.fullscreen = fullscreen
|
self.evas_obj.fullscreen = fullscreen
|
||||||
# self.evas_obj.size = str(WIDTH) + 'x' + str(HEIGHT)
|
# self.evas_obj.size = str(WIDTH) + 'x' + str(HEIGHT)
|
||||||
|
self.evas_obj.evas.image_cache_set(IMAGE_CACHE_SIZE*1024*1024)
|
||||||
|
self.evas_obj.evas.font_cache_set(FONT_CACHE_SIZE*1024*1024)
|
||||||
self.evas_obj.show()
|
self.evas_obj.show()
|
||||||
|
|
||||||
def on_resize(self, evas_obj):
|
def on_resize(self, evas_obj):
|
||||||
|
|
Loading…
Reference in a new issue