Commit Graph

31 Commits (3066c86e38c8297c4c534a31c9631bb8bd6535cf)

Author SHA1 Message Date
Hans-Werner Hilse 3066c86e38 Refactoring hardware abstraction
This is a major overhaul of the hardware abstraction layer.
A few notes:

General platform distinction happens in
  frontend/device.lua
which will delegate everything else to
  frontend/device/<platform_name>/device.lua
which should extend
  frontend/device/generic/device.lua

Screen handling is implemented in
  frontend/device/screen.lua
which includes the *functionality* to support device specifics.
Actually setting up the device specific functionality, however,
is done in the device specific setup code in the relevant
device.lua file.

The same goes for input handling.
10 years ago
HW 2154e7e852 Further refactoring
This should finish the work to make all globals to local variables.
That allows LuaJIT to properly compile things by interning the
references to the relevant parts (rather than looking up globals
all the time which stops a trace).
11 years ago
HW ef111b99c6 Refactored to use strictly locals 11 years ago
chrox aac1509c21 check dimension restraint on regional refresh request 11 years ago
chrox 3f3e434157 rescale font size when fallbacks to fallback fonts
and make FreeSerif font the default font instead of DroidSansFallback

This patch should fix #272.
11 years ago
chrox 668e84290e fix fractional pix returned by scaleByDPI 11 years ago
chrox 08a1422ad4 fix regional screen refresh 11 years ago
chrox 0c9c4d7af1 fix regional screen refresh 11 years ago
chrox ee6c93a516 add regional screen refresh support
and waveform mode can be specified when calling screen refresh
11 years ago
chrox 703e9da698 add 90 degrees of landscape mode 11 years ago
Giorgio Micotti c91e3834bb Added detection of single kobo models. Also a script to launch koreader is included and the related Makefile changes. 11 years ago
Qingping Hou 495a173ed0 add scaleByDPI and use it in touchmenu 11 years ago
Qingping Hou a655219eba move adjustGesCoordinate from Screen to GestureDetector
also adjust swipe direction according to screen view mode
11 years ago
Qingping Hou 3f918c3018 get correct screen width in Screen.lua 11 years ago
{Qingping,Dave} Hou 85b4d60efc Merge pull request #735 from chrox/ui-tweaks
set menu font size according to screen dpi
11 years ago
Qingping Hou 681c788971 fix bug for touch event coordinates handling in landscape mode
This fix might only work for KPW, need to test on other devies
later.
11 years ago
Qingping Hou 0dba667937 rename setScreenViewMode to setScreenMode 11 years ago
Qingping Hou 2218d3bd73 add getScreenMode in screen.lua 11 years ago
chrox 25bcbfa53a set menu font size according to screen dpi 11 years ago
Qingping Hou d0ffb09489 fix adjustGesCoordinate 11 years ago
Qingping Hou dd7e26a986 fix crash in goint into screen saver 11 years ago
Qingping Hou d4ff6f9291 first demo of screen rotate 11 years ago
Qingping Hou 68cc9b9cf4 Screen:saveCurrentBB: pass pitch on creating new blitbuffer 12 years ago
Qingping Hou e02c88a929 add getPitch method to screen.lua 12 years ago
Qingping Hou 271701edfe screensaver and usbplugin events support 12 years ago
Qingping Hou 51ed793d14 add screen rotate support 12 years ago
Qingping Hou 07d6f66565 fix screen rotation mode restore for native system 12 years ago
Qingping Hou 937a91c297 fix fb:getOrientation method, adjust mode numbering
also use it in screen.lua
12 years ago
HW ce5614ef6f cleanup, also removal of G_* constants
a bit of cleanup, switched width/height combo over to use
Geom() objects, moved framebuffer handling to Screen object,
callback syntax sanitizing, lots of small changes
12 years ago
HW 60ccd7441e fixed menu info displaying, replaced debug() by DEBUG()
the replacement of debug() was necessary to be able to access the lua library "debug" (for backtraces etc.)
12 years ago
HW 9e531fc2db file reorganisation
all lua frontend files are now in the frontend/ directory.
all old code is cleaned up.
12 years ago