Commit Graph

15 Commits (634fed5487bbf2f49c961449686cbb8284e09d2c)

Author SHA1 Message Date
Qingping Hou 634fed5487 use device instead of canvascontext in UI modules 5 years ago
Qingping Hou 1605409c60 rename runtimectl to document/canvascontext 5 years ago
Qingping Hou 02eca23649 decouple device from document modules 5 years ago
Frans de Jonge 2538189473
[doc] WidgetContainer: fix some typos 7 years ago
Qingping Hou 09564d4b4d doc: event propagation for widgets 8 years ago
Qingping Hou 11f55d2aff doc: Event and WidgetContainer 8 years ago
Qingping Hou e58198fbe2 widgetcontainer(fix): crash when getting widget size 8 years ago
chrox f3e0d44cc4 disable jit on some modules on android
to make koreader on Android  more stable

and with these opt params:
```
require("jit.opt").start("sizemcode=64","maxmcode=64", "hotloop=10000")
```

The strategy here is that we only use precious mcode memory (jitting)
on deep loops like the several blitting methods in blitbuffer.lua and
the pixel-copying methods in mupdf.lua. So that a small amount of mcode
memory (64KB) allocated when koreader is launched in the android.lua
is enough for the program and it won't need to jit other parts of lua
code and thus won't allocate mcode memory any more which by our
observation will be harder and harder as we run koreader.
8 years ago
Qingping Hou 11ee8d6fcc refactor: use new KeyValuePage widget for displaying statistics 8 years ago
Qingping Hou 63e88baf33 fix: stop self.dimen polution for inputcontainers
Without this fix, self.dimen is shared among all inputcontainers
intances, which breaks some of the UI rendering. All widget should
set/initialize their own self.dimen in self:init() method.
9 years ago
chrox d34a7fb355 lookup input word when holding on word in dict lookup window 10 years ago
chrox 92219a1f1e cleanup: expand tab to 4 spaces 10 years ago
chrox f12d8eb9b4 add align field in WidgetContainer 11 years ago
chrox 5b31076025 calculate widgetcontainer dimension if not given 11 years ago
HW ef111b99c6 Refactored to use strictly locals 11 years ago