From 473517714a09858485484e8ae19db28cb6eb5620 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <rafael.carre@gmail.com>
Date: Wed, 15 Apr 2009 00:11:31 +0200
Subject: [PATCH] Fix pegbox on Sansa Clip (create a wide layout bitmap)

---
 apps/plugins/bitmaps/native/SOURCES                |    3 +++
 .../bitmaps/native/pegbox_header.20x64x1.bmp       |  Bin 0 -> 318 bytes
 apps/plugins/pegbox.c                              |    6 +++---
 3 files changed, 6 insertions(+), 3 deletions(-)
 create mode 100644 apps/plugins/bitmaps/native/pegbox_header.20x64x1.bmp

diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES
index 357480a..91eb76e 100644
--- a/apps/plugins/bitmaps/native/SOURCES
+++ b/apps/plugins/bitmaps/native/SOURCES
@@ -387,6 +387,9 @@ pegbox_menu_top.160x42x1.bmp
 pegbox_menu_items.60x17x1.bmp
 pegbox_pieces.12x12x1.bmp
 pegbox_header.160x24x1.bmp
+#elif LCD_WIDTH >= 128
+pegbox_header.20x64x1.bmp
+pegbox_pieces.9x7x1.bmp
 #elif LCD_WIDTH >= 112
 pegbox_header.112x8x1.bmp
 pegbox_pieces.9x7x1.bmp
diff --git a/apps/plugins/bitmaps/native/pegbox_header.20x64x1.bmp b/apps/plugins/bitmaps/native/pegbox_header.20x64x1.bmp
new file mode 100644
index 0000000000000000000000000000000000000000..f28303ce8412541a84572edb8d4aecc544df7287
GIT binary patch
literal 318
zcmZ?rwPR!e13Mt80mLFe>;S}!KnMmvN{AbRnScTy3<CfE{|Dj^Sn>P+1q}E9Z@`K{
za>)ALAO67b{`Lok=V}HFuU>Cpc%@yy@M;l|Uv7Y+4yK0`vq5^^+}XhJ`t}Bf7b}2f
VuiC)ycI^g+_dvISFw9JHX#giBuqXfk

literal 0
HcmV?d00001

diff --git a/apps/plugins/pegbox.c b/apps/plugins/pegbox.c
index 514b92e..e9df709 100644
--- a/apps/plugins/pegbox.c
+++ b/apps/plugins/pegbox.c
@@ -459,9 +459,9 @@ PLUGIN_HEADER
 #define LEVEL_TEXT_Y   14
 #define PEGS_TEXT_Y    58
 #elif (LCD_WIDTH >= 128) && (LCD_HEIGHT >= 64)
-#define TEXT_X         114
-#define LEVEL_TEXT_Y   14
-#define PEGS_TEXT_Y    58
+#define TEXT_X         112
+#define LEVEL_TEXT_Y   27
+#define PEGS_TEXT_Y    50
 #else
 #error "Unsupported screen size"
 #endif
-- 
1.6.1.3

