diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-11-10 15:25:15 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-11-10 15:25:15 +0000 |
commit | 33af0dec28cf31be0ce7195b90546861efcce76f (patch) | |
tree | f106c9118c9191bff00e1468c98540787081c0e8 /firmware/export/config/ondavx767.h | |
parent | e134021e1b05f797cffd28c6b4ee72a963ff3812 (diff) | |
download | rockbox-33af0dec28cf31be0ce7195b90546861efcce76f.tar.gz rockbox-33af0dec28cf31be0ce7195b90546861efcce76f.zip |
Touchscreen: Improved scroll threshold
Remove the hardcoded (and way too small) scroll threshold (the distance moved in pixels before we think the users wants to scroll) and replace it with something based on the actual DPI of the screen.
On Android we call the API for that, on other touchscreens we reimplemented Android's formula (as of 2.2) and calculate it.
Flyspray: 11727
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28548 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config/ondavx767.h')
-rw-r--r-- | firmware/export/config/ondavx767.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/export/config/ondavx767.h b/firmware/export/config/ondavx767.h index 19bb7ed580..bf9aaed7c1 100644 --- a/firmware/export/config/ondavx767.h +++ b/firmware/export/config/ondavx767.h | |||
@@ -65,8 +65,11 @@ | |||
65 | /* LCD dimensions */ | 65 | /* LCD dimensions */ |
66 | #define CONFIG_LCD LCD_ONDAVX767 | 66 | #define CONFIG_LCD LCD_ONDAVX767 |
67 | 67 | ||
68 | #define LCD_WIDTH 320 | 68 | /* this are not actually the correct dimensions (480x272 is correct) |
69 | #define LCD_HEIGHT 240 | 69 | * should be fixed once there's a working LCD driver */ |
70 | #define LCD_WIDTH 480 | ||
71 | #define LCD_HEIGHT 272 | ||
72 | #define LCD_DPI 128 | ||
70 | 73 | ||
71 | #define LCD_DEPTH 16 /* 16bit colours */ | 74 | #define LCD_DEPTH 16 /* 16bit colours */ |
72 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | 75 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ |