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 | |
| parent | e134021e1b05f797cffd28c6b4ee72a963ff3812 (diff) | |
| download | rockbox-33af0dec28cf31be0ce7195b90546861efcce76f.zip rockbox-33af0dec28cf31be0ce7195b90546861efcce76f.tar.gz rockbox-33af0dec28cf31be0ce7195b90546861efcce76f.tar.bz2 rockbox-33af0dec28cf31be0ce7195b90546861efcce76f.tar.xz | |
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')
| -rw-r--r-- | firmware/export/config/cowond2.h | 1 | ||||
| -rw-r--r-- | firmware/export/config/mrobe500.h | 2 | ||||
| -rw-r--r-- | firmware/export/config/ondavx747.h | 1 | ||||
| -rw-r--r-- | firmware/export/config/ondavx767.h | 7 | ||||
| -rw-r--r-- | firmware/export/config/ondavx777.h | 1 | ||||
| -rw-r--r-- | firmware/export/config/sim.h | 1 |
6 files changed, 11 insertions, 2 deletions
diff --git a/firmware/export/config/cowond2.h b/firmware/export/config/cowond2.h index f9de276..ebaa636 100644 --- a/firmware/export/config/cowond2.h +++ b/firmware/export/config/cowond2.h @@ -75,6 +75,7 @@ /* LCD dimensions */ #define LCD_WIDTH 320 #define LCD_HEIGHT 240 +#define LCD_DPI 160 #define LCD_DEPTH 16 #define LCD_PIXELFORMAT 565 diff --git a/firmware/export/config/mrobe500.h b/firmware/export/config/mrobe500.h index 9a20195..776b031 100644 --- a/firmware/export/config/mrobe500.h +++ b/firmware/export/config/mrobe500.h @@ -87,9 +87,11 @@ #if _RESOLUTION == _LCD_RES_VGA #define LCD_NATIVE_WIDTH 480 #define LCD_NATIVE_HEIGHT 640 +#define LCD_DPI 216 #else #define LCD_NATIVE_WIDTH 240 #define LCD_NATIVE_HEIGHT 320 +#define LCD_DPI 108 #endif /* choose the lcd orientation. CONFIG_ORIENTATION defined in config.h */ diff --git a/firmware/export/config/ondavx747.h b/firmware/export/config/ondavx747.h index ae80cac..1cd9143 100644 --- a/firmware/export/config/ondavx747.h +++ b/firmware/export/config/ondavx747.h @@ -79,6 +79,7 @@ #define LCD_WIDTH 240 #define LCD_HEIGHT 400 #endif +#define LCD_DPI 155 #define LCD_DEPTH 16 /* 16bit colours */ #define LCD_PIXELFORMAT RGB565 /* rgb565 */ diff --git a/firmware/export/config/ondavx767.h b/firmware/export/config/ondavx767.h index 19bb7ed..bf9aaed 100644 --- a/firmware/export/config/ondavx767.h +++ b/firmware/export/config/ondavx767.h @@ -65,8 +65,11 @@ /* LCD dimensions */ #define CONFIG_LCD LCD_ONDAVX767 -#define LCD_WIDTH 320 -#define LCD_HEIGHT 240 +/* this are not actually the correct dimensions (480x272 is correct) + * should be fixed once there's a working LCD driver */ +#define LCD_WIDTH 480 +#define LCD_HEIGHT 272 +#define LCD_DPI 128 #define LCD_DEPTH 16 /* 16bit colours */ #define LCD_PIXELFORMAT RGB565 /* rgb565 */ diff --git a/firmware/export/config/ondavx777.h b/firmware/export/config/ondavx777.h index a2ad155..b6e7546 100644 --- a/firmware/export/config/ondavx777.h +++ b/firmware/export/config/ondavx777.h @@ -73,6 +73,7 @@ #define LCD_WIDTH 240 #define LCD_HEIGHT 400 #endif +#define LCD_DPI 155 #define LCD_DEPTH 16 /* 16bit colours */ #define LCD_PIXELFORMAT RGB565 /* rgb565 */ diff --git a/firmware/export/config/sim.h b/firmware/export/config/sim.h index 066201a..fc7996e 100644 --- a/firmware/export/config/sim.h +++ b/firmware/export/config/sim.h @@ -19,6 +19,7 @@ #undef HAVE_ATA_POWER_OFF #undef CONFIG_LCD +#undef LCD_DPI /* likely to be too different on a PC */ #undef CONFIG_LED |