cust_display.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. /*****************************************************************************
  2. * Copyright Statement:
  3. * --------------------
  4. * This software is protected by Copyright and the information contained
  5. * herein is confidential. The software may not be copied and the information
  6. * contained herein may not be used or disclosed except with the written
  7. * permission of MediaTek Inc. (C) 2008
  8. *
  9. * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
  27. *
  28. * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*
  36. // new animation parameters example:WVGA (480*800)
  37. // A , start point of first number rectangle
  38. // B , left_top point of battery_capacity fill_in rectangle
  39. // c , left_bottom point of battery_capacity fill_in rectangle
  40. // battery capacity rectangle
  41. #define CAPACITY_LEFT (172) // CAPACITY_LEFT = B.x = 172
  42. #define CAPACITY_TOP (330) // CAPACITY_TOP = B.y = 330
  43. #define CAPACITY_RIGHT (307) // CAPACITY_RIGHT = B.x + fill_line.w = 172 + 135
  44. #define CAPACITY_BOTTOM (546) // CAPACITY_BOTTOM = C.y = 546
  45. // first number rectangle
  46. #define NUMBER_LEFT (178) // NUMBER_LEFT = A.x
  47. #define NUMBER_TOP (190) // NUMBER_TOP = A.y
  48. #define NUMBER_RIGHT (216) // NUMBER_RIGHT = A.x + num.w = 178 + 38
  49. #define NUMBER_BOTTOM (244) // NUMBER_BOTTOM = A.y + num.h = 190 + 54
  50. // % rectangle
  51. #define PERCENT_LEFT (254) // PERCENT_LEFT = A.x + 2*num.w = 178 + 2*38
  52. #define PERCENT_TOP (190) // PERCENT_TOP = A.y
  53. #define PERCENT_RIGHT (302) // PERCENT_LEFT = A.x + 2*num.w +(%).w
  54. #define PERCENT_BOTTOM (244) // PERCENT_BOTTOM = A.y + (%).h = 190 + 54
  55. // top animation part
  56. #define TOP_ANIMATION_LEFT (172) // TOP_ANIMATION_LEFT = B.x
  57. #define TOP_ANIMATION_TOP (100) // 100
  58. #define TOP_ANIMATION_RIGHT (307) // TOP_ANIMATION_LEFT = B.x + fill_line.w = 172 + 135
  59. #define TOP_ANIMATION_BOTTOM (124) // TOP_ANIMATION_BOTTOM = TOP_ANIMATION_TOP + fill_line.h = 100 + 24
  60. */
  61. #ifndef __CUST_DISPLAY_H__
  62. #define __CUST_DISPLAY_H__
  63. // color
  64. #define BAR_OCCUPIED_COLOR (0xFF00FF00) // Green
  65. #define BAR_EMPTY_COLOR (0xFFFFFFFF) // White
  66. #define BAR_BG_COLOR (0xFF000000) // Black
  67. // LOGO number
  68. #define ANIM_V0_LOGO_NUM 5 // version 0: show 4 recatangle growing animation without battery number
  69. #define ANIM_V1_LOGO_NUM 39 // version 1: show wave animation with battery number
  70. #define ANIM_V2_LOGO_NUM 86 // version 2: show wireless charging animation
  71. // Common LOGO index
  72. #define BOOT_LOGO_INDEX 0
  73. #define KERNEL_LOGO_INDEX 38
  74. #define ANIM_V0_BACKGROUND_INDEX 1
  75. #define ANIM_V1_BACKGROUND_INDEX 35
  76. #define LOW_BATTERY_INDEX 2
  77. #define CHARGER_OV_INDEX 3
  78. #define FULL_BATTERY_INDEX 37
  79. // version 1: show wave animation with battery number
  80. // NUMBER LOGO INDEX
  81. #define NUMBER_PIC_START_0 4
  82. #define NUMBER_PIC_PERCENT 14
  83. // DYNAMIC ANIMATION LOGO INDEX
  84. #define BAT_ANIM_START_0 15
  85. // LOW BATTERY(0~10%) ANIMATION LOGO
  86. #define LOW_BAT_ANIM_START_0 25
  87. #define ANIM_LINE_INDEX 36
  88. // version 2: show wireless charging animation logo index
  89. #define V2_NUM_START_0_INDEX 57
  90. #define V2_NUM_PERCENT_INDEX 67
  91. #define V2_BAT_0_10_START_INDEX 68
  92. #define V2_BAT_10_40_START_INDEX 72
  93. #define V2_BAT_40_80_START_INDEX 76
  94. #define V2_BAT_80_100_START_NDEX 80
  95. #define V2_BAT_0_INDEX 84
  96. #define V2_BAT_100_INDEX 85
  97. // show fast charging animation logo index
  98. #define FAST_CHARGING_BAT_100_INDEX 39
  99. #define FAST_CHARGING_BAT_START_0_INDEX 40
  100. #define FAST_CHARGING_NUM_START_0_INDEX 46
  101. #define FAST_CHARGING_NUM_PERCENT_INDEX 56
  102. #if defined(FHD) || defined(CU_FHD) || defined(CMCC_FHD) || defined(CT_FHD) || defined(CMCC_LTE_FHD)
  103. // fhd 1080*1920
  104. // battery capacity rectangle
  105. #define CAPACITY_LEFT (387) // battery capacity center
  106. #define CAPACITY_TOP (802)
  107. #define CAPACITY_RIGHT (691)
  108. #define CAPACITY_BOTTOM (1292)
  109. // first number rectangle
  110. #define NUMBER_LEFT (351+84) // number
  111. #define NUMBER_TOP (479)
  112. #define NUMBER_RIGHT (435+84)
  113. #define NUMBER_BOTTOM (600)
  114. // % rectangle
  115. #define PERCENT_LEFT (519+84) // percent number_left + 2*number_width
  116. #define PERCENT_TOP (479)
  117. #define PERCENT_RIGHT (627+84)
  118. #define PERCENT_BOTTOM (600)
  119. // top animation part
  120. #define TOP_ANIMATION_LEFT (387) // top animation
  121. #define TOP_ANIMATION_TOP (100)
  122. #define TOP_ANIMATION_RIGHT (691)
  123. #define TOP_ANIMATION_BOTTOM (152)
  124. // for old animation
  125. #define BAR_LEFT (470)
  126. #define BAR_TOP (356)
  127. #define BAR_RIGHT (610)
  128. #define BAR_BOTTOM (678)
  129. #elif defined(WQHD) || defined(CU_WQHD) || defined(CMCC_WQHD) || defined(CT_WQHD) || defined(CMCC_LTE_WQHD)
  130. // wqhd 1440*2560
  131. // battery capacity rectangle
  132. #define CAPACITY_LEFT (556) // battery capacity center
  133. #define CAPACITY_TOP (1112)
  134. #define CAPACITY_RIGHT (882)
  135. #define CAPACITY_BOTTOM (1630)
  136. // first number rectangle
  137. #define NUMBER_LEFT (570) // number
  138. #define NUMBER_TOP (770)
  139. #define NUMBER_RIGHT (660)
  140. #define NUMBER_BOTTOM (898)
  141. // % rectangle
  142. #define PERCENT_LEFT (750) // percent number_left + 2*number_width
  143. #define PERCENT_TOP (770)
  144. #define PERCENT_RIGHT (864)
  145. #define PERCENT_BOTTOM (898)
  146. // top animation part
  147. #define TOP_ANIMATION_LEFT (556) // top animation
  148. #define TOP_ANIMATION_TOP (100)
  149. #define TOP_ANIMATION_RIGHT (882)
  150. #define TOP_ANIMATION_BOTTOM (158)
  151. // for old animation
  152. #define BAR_LEFT (443)
  153. #define BAR_TOP (337)
  154. #define BAR_RIGHT (574)
  155. #define BAR_BOTTOM (641)
  156. #elif defined(HD720) || defined(CU_HD720) || defined(CMCC_HD720) || defined(CT_HD720) || defined(CMCC_LTE_HD720)
  157. // hd720 720*1280
  158. // battery capacity rectangle
  159. #define CAPACITY_LEFT (278) // battery capacity center
  160. #define CAPACITY_TOP (556)
  161. #define CAPACITY_RIGHT (441)
  162. #define CAPACITY_BOTTOM (817)
  163. // first number rectangle
  164. #define NUMBER_LEFT (290) // number
  165. #define NUMBER_TOP (386)
  166. #define NUMBER_RIGHT (335)
  167. #define NUMBER_BOTTOM (450)
  168. // % rectangle
  169. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  170. #define PERCENT_TOP (386)
  171. #define PERCENT_RIGHT (437)
  172. #define PERCENT_BOTTOM (450)
  173. // top animation part
  174. #define TOP_ANIMATION_LEFT (278) // top animation
  175. #define TOP_ANIMATION_TOP (100)
  176. #define TOP_ANIMATION_RIGHT (441)
  177. #define TOP_ANIMATION_BOTTOM (129)
  178. // for old animation
  179. #define BAR_LEFT (313)
  180. #define BAR_TOP (238)
  181. #define BAR_RIGHT (406)
  182. #define BAR_BOTTOM (453)
  183. #elif defined(FWVGA) || defined(CU_FWVGA) || defined(CMCC_FWVGA) || defined(CT_FWVGA) || defined(CMCC_LTE_FWVGA)
  184. // fwvga 480*854
  185. // battery capacity rectangle
  186. #define CAPACITY_LEFT (172) // battery capacity center
  187. #define CAPACITY_TOP (357)
  188. #define CAPACITY_RIGHT (307)
  189. #define CAPACITY_BOTTOM (573)
  190. // first number rectangle
  191. #define NUMBER_LEFT (172) // number
  192. #define NUMBER_TOP (213)
  193. #define NUMBER_RIGHT (210)
  194. #define NUMBER_BOTTOM (267)
  195. // % rectangle
  196. #define PERCENT_LEFT (248) // percent number_left + 2*number_width
  197. #define PERCENT_TOP (213)
  198. #define PERCENT_RIGHT (296)
  199. #define PERCENT_BOTTOM (267)
  200. // top animation part
  201. #define TOP_ANIMATION_LEFT (172) // top animation
  202. #define TOP_ANIMATION_TOP (100)
  203. #define TOP_ANIMATION_RIGHT (307)
  204. #define TOP_ANIMATION_BOTTOM (124)
  205. // for old animation
  206. #define BAR_LEFT (184)
  207. #define BAR_TOP (227)
  208. #define BAR_RIGHT (294)
  209. #define BAR_BOTTOM (437)
  210. #elif defined(QHD) || defined(CU_QHD) || defined(CMCC_QHD) || defined(CT_QHD) || defined(CMCC_LTE_QHD)
  211. // qhd 540*960
  212. // battery capacity rectangle
  213. #define CAPACITY_LEFT (202) // battery capacity center
  214. #define CAPACITY_TOP (410)
  215. #define CAPACITY_RIGHT (337)
  216. #define CAPACITY_BOTTOM (626)
  217. // first number rectangle
  218. #define NUMBER_LEFT (202) // number
  219. #define NUMBER_TOP (266)
  220. #define NUMBER_RIGHT (240)
  221. #define NUMBER_BOTTOM (320)
  222. // % rectangle
  223. #define PERCENT_LEFT (278) // percent number_left + 2*number_width
  224. #define PERCENT_TOP (266)
  225. #define PERCENT_RIGHT (326)
  226. #define PERCENT_BOTTOM (320)
  227. // top animation part
  228. #define TOP_ANIMATION_LEFT (202) // top animation
  229. #define TOP_ANIMATION_TOP (100)
  230. #define TOP_ANIMATION_RIGHT (337)
  231. #define TOP_ANIMATION_BOTTOM (124)
  232. // for old animation
  233. #define BAR_LEFT (235)
  234. #define BAR_TOP (179)
  235. #define BAR_RIGHT (305)
  236. #define BAR_BOTTOM (340)
  237. #elif defined(WVGA) || defined(CU_WVGA) || defined(CMCC_WVGA) || defined(CT_WVGA) || defined(CMCC_LTE_WVGA)
  238. // default wvga 480*800
  239. // battery capacity rectangle
  240. #define CAPACITY_LEFT (172) // battery capacity center
  241. #define CAPACITY_TOP (330)
  242. #define CAPACITY_RIGHT (307)
  243. #define CAPACITY_BOTTOM (546)
  244. // first number rectangle
  245. #define NUMBER_LEFT (178) // number
  246. #define NUMBER_TOP (190)
  247. #define NUMBER_RIGHT (216)
  248. #define NUMBER_BOTTOM (244)
  249. // % rectangle
  250. #define PERCENT_LEFT (254) // percent number_left + 2*number_width
  251. #define PERCENT_TOP (190)
  252. #define PERCENT_RIGHT (302)
  253. #define PERCENT_BOTTOM (244)
  254. // top animation part
  255. #define TOP_ANIMATION_LEFT (172) // top animation
  256. #define TOP_ANIMATION_TOP (100)
  257. #define TOP_ANIMATION_RIGHT (307)
  258. #define TOP_ANIMATION_BOTTOM (124)
  259. // for old animation
  260. #define BAR_LEFT (209)
  261. #define BAR_TOP (149)
  262. #define BAR_RIGHT (271)
  263. #define BAR_BOTTOM (282)
  264. #elif defined(HVGA) || defined(CU_HVGA) || defined(CMCC_HVGA) || defined(CT_HVGA) || defined(CMCC_LTE_HVGA)
  265. // hvga 320*480
  266. // battery capacity rectangle
  267. #define CAPACITY_LEFT (109) // battery capacity center
  268. #define CAPACITY_TOP (189)
  269. #define CAPACITY_RIGHT (211)
  270. #define CAPACITY_BOTTOM (350)
  271. // first number rectangle
  272. #define NUMBER_LEFT (126) // number
  273. #define NUMBER_TOP (95)
  274. #define NUMBER_RIGHT (153)
  275. #define NUMBER_BOTTOM (131)
  276. // % rectangle
  277. #define PERCENT_LEFT (180) // percent number_left + 2*number_width
  278. #define PERCENT_TOP (95)
  279. #define PERCENT_RIGHT (212)
  280. #define PERCENT_BOTTOM (131)
  281. // top animation part
  282. #define TOP_ANIMATION_LEFT (109) // top animation
  283. #define TOP_ANIMATION_TOP (100)
  284. #define TOP_ANIMATION_RIGHT (211)
  285. #define TOP_ANIMATION_BOTTOM (118)
  286. // for old animation
  287. #define BAR_LEFT (129)
  288. #define BAR_TOP (128)
  289. #define BAR_RIGHT (190)
  290. #define BAR_BOTTOM (245)
  291. #elif defined(QVGA) || defined(CU_QVGA) || defined(CMCC_QVGA) || defined(CT_QVGA) || defined(CMCC_LTE_QVGA)
  292. // hvga 320*480
  293. // battery capacity rectangle
  294. #define CAPACITY_LEFT (82) // battery capacity center
  295. #define CAPACITY_TOP (124)
  296. #define CAPACITY_RIGHT (158)
  297. #define CAPACITY_BOTTOM (241)
  298. // first number rectangle
  299. #define NUMBER_LEFT (93) // number
  300. #define NUMBER_TOP (50)
  301. #define NUMBER_RIGHT (109)
  302. #define NUMBER_BOTTOM (73)
  303. // % rectangle
  304. #define PERCENT_LEFT (125) // percent number_left + 2*number_width
  305. #define PERCENT_TOP (50)
  306. #define PERCENT_RIGHT (145)
  307. #define PERCENT_BOTTOM (73)
  308. // top animation part
  309. #define TOP_ANIMATION_LEFT (82) // top animation
  310. #define TOP_ANIMATION_TOP (100)
  311. #define TOP_ANIMATION_RIGHT (158)
  312. #define TOP_ANIMATION_BOTTOM (113)
  313. // for old animation
  314. #define BAR_LEFT (97)
  315. #define BAR_TOP (96)
  316. #define BAR_RIGHT (140)
  317. #define BAR_BOTTOM (184)
  318. #elif defined(WSVGA)
  319. // wsvga 600*1024
  320. // battery capacity rectangle
  321. #define CAPACITY_LEFT (232) // battery capacity center
  322. #define CAPACITY_TOP (442)
  323. #define CAPACITY_RIGHT (367)
  324. #define CAPACITY_BOTTOM (658)
  325. // first number rectangle
  326. #define NUMBER_LEFT (250) // number
  327. #define NUMBER_TOP (300)
  328. #define NUMBER_RIGHT (288)
  329. #define NUMBER_BOTTOM (354)
  330. // % rectangle
  331. #define PERCENT_LEFT (326) // percent number_left + 2*number_width
  332. #define PERCENT_TOP (300)
  333. #define PERCENT_RIGHT (374)
  334. #define PERCENT_BOTTOM (354)
  335. // top animation part
  336. #define TOP_ANIMATION_LEFT (232) // top animation
  337. #define TOP_ANIMATION_TOP (100)
  338. #define TOP_ANIMATION_RIGHT (367)
  339. #define TOP_ANIMATION_BOTTOM (124)
  340. // for old animation
  341. #define BAR_LEFT (260)
  342. #define BAR_TOP (190)
  343. #define BAR_RIGHT (338)
  344. #define BAR_BOTTOM (360)
  345. #elif defined(WSVGANL)
  346. // wsvganl 1024*600
  347. // battery capacity rectangle
  348. #define CAPACITY_LEFT (444) // battery capacity center
  349. #define CAPACITY_TOP (230)
  350. #define CAPACITY_RIGHT (579) // 444 + 135
  351. #define CAPACITY_BOTTOM (446)
  352. // first number rectangle
  353. #define NUMBER_LEFT (466) // number
  354. #define NUMBER_TOP (90)
  355. #define NUMBER_RIGHT (504) // 466 + 38
  356. #define NUMBER_BOTTOM (144) // 90 + 54
  357. // % rectangle
  358. #define PERCENT_LEFT (542) // percent number_left + 2*number_width
  359. #define PERCENT_TOP (90)
  360. #define PERCENT_RIGHT (590)
  361. #define PERCENT_BOTTOM (144)
  362. // top animation part
  363. #define TOP_ANIMATION_LEFT (444) // top animation
  364. #define TOP_ANIMATION_TOP (100)
  365. #define TOP_ANIMATION_RIGHT (579)
  366. #define TOP_ANIMATION_BOTTOM (124)
  367. // for old animation
  368. #define BAR_LEFT (414)
  369. #define BAR_TOP (186)
  370. #define BAR_RIGHT (608)
  371. #define BAR_BOTTOM (477)
  372. #elif defined(WXGANL)
  373. // wxganl 1280*800
  374. // battery capacity rectangle
  375. #define CAPACITY_LEFT (558) // battery capacity center
  376. #define CAPACITY_TOP (265)
  377. #define CAPACITY_RIGHT (721) //558+163
  378. #define CAPACITY_BOTTOM (525)
  379. #define NUMBER_LEFT (585) // number
  380. #define NUMBER_TOP (95)
  381. #define NUMBER_RIGHT (630)//585+45
  382. #define NUMBER_BOTTOM (159) //95+64
  383. #define PERCENT_LEFT (675) // percent number_left + 2*number_width
  384. #define PERCENT_TOP (95)
  385. #define PERCENT_RIGHT (732) //675+57
  386. #define PERCENT_BOTTOM (159)
  387. #define TOP_ANIMATION_LEFT (558) // top animation
  388. #define TOP_ANIMATION_TOP (100)
  389. #define TOP_ANIMATION_RIGHT (721)
  390. #define TOP_ANIMATION_BOTTOM (129)
  391. // for old animation
  392. #define BAR_LEFT (525)
  393. #define BAR_TOP (250)
  394. #define BAR_RIGHT (755)
  395. #define BAR_BOTTOM (640)
  396. #elif defined(WXGA)
  397. // wxga 800*1280
  398. // battery capacity rectangle
  399. #define CAPACITY_LEFT (318) // battery capacity center
  400. #define CAPACITY_TOP (556)
  401. #define CAPACITY_RIGHT (481) //318+163
  402. #define CAPACITY_BOTTOM (815)
  403. #define NUMBER_LEFT (345) // number
  404. #define NUMBER_TOP (385)
  405. #define NUMBER_RIGHT (390) //345+45
  406. #define NUMBER_BOTTOM (449) //385+64
  407. #define PERCENT_LEFT (435) // percent number_left + 2*number_width
  408. #define PERCENT_TOP (385)
  409. #define PERCENT_RIGHT (492) //435+57
  410. #define PERCENT_BOTTOM (449)
  411. #define TOP_ANIMATION_LEFT (318) // top animation
  412. #define TOP_ANIMATION_TOP (100)
  413. #define TOP_ANIMATION_RIGHT (481)
  414. #define TOP_ANIMATION_BOTTOM (129)
  415. // for old animation
  416. #define BAR_LEFT (348)
  417. #define BAR_TOP (238)
  418. #define BAR_RIGHT (453)
  419. #define BAR_BOTTOM (452)
  420. #elif defined(WUXGANL)
  421. // wuxganl 1920*1200
  422. // battery capacity rectangle
  423. #define CAPACITY_LEFT (806) // battery capacity center
  424. #define CAPACITY_TOP (443)
  425. #define CAPACITY_RIGHT (1110)
  426. #define CAPACITY_BOTTOM (929)
  427. #define NUMBER_LEFT (855) // number
  428. #define NUMBER_TOP (124)
  429. #define NUMBER_RIGHT (939) //855+84
  430. #define NUMBER_BOTTOM (245)
  431. #define PERCENT_LEFT (1023) // percent number_left + 2*number_width
  432. #define PERCENT_TOP (124)
  433. #define PERCENT_RIGHT (1131) //1023+108
  434. #define PERCENT_BOTTOM (245) //124+121
  435. #define TOP_ANIMATION_LEFT (806) // top animation
  436. #define TOP_ANIMATION_TOP (100)
  437. #define TOP_ANIMATION_RIGHT (1110) //806+304
  438. #define TOP_ANIMATION_BOTTOM (152)
  439. // for old animation
  440. #define BAR_LEFT (890)
  441. #define BAR_TOP (357)
  442. #define BAR_RIGHT (1030)
  443. #define BAR_BOTTOM (678)
  444. #elif defined(WUXGA) || defined(CU_WUXGA)
  445. // wuxga 1200*1920
  446. // battery capacity rectangle
  447. #define CAPACITY_LEFT (447) // battery capacity center
  448. #define CAPACITY_TOP (803)
  449. #define CAPACITY_RIGHT (751)
  450. #define CAPACITY_BOTTOM (1289)
  451. #define NUMBER_LEFT (494) // number
  452. #define NUMBER_TOP (481)
  453. #define NUMBER_RIGHT (578)//494+84
  454. #define NUMBER_BOTTOM (602) //481+121
  455. #define PERCENT_LEFT (662) // percent number_left + 2*number_width
  456. #define PERCENT_TOP (481)
  457. #define PERCENT_RIGHT (770) //662+108
  458. #define PERCENT_BOTTOM (602) //481+121
  459. #define TOP_ANIMATION_LEFT (447) // top animation
  460. #define TOP_ANIMATION_TOP (100)
  461. #define TOP_ANIMATION_RIGHT (751)
  462. #define TOP_ANIMATION_BOTTOM (152)
  463. // for old animation
  464. #define BAR_LEFT (529)
  465. #define BAR_TOP (357)
  466. #define BAR_RIGHT (672)
  467. #define BAR_BOTTOM (680)
  468. #elif defined(XGA)
  469. // xga 768*1024
  470. // battery capacity rectangle
  471. #define CAPACITY_LEFT (316) // battery capacity center
  472. #define CAPACITY_TOP (442)
  473. #define CAPACITY_RIGHT (451)
  474. #define CAPACITY_BOTTOM (658)
  475. #define NUMBER_LEFT (338) // number
  476. #define NUMBER_TOP (300)
  477. #define NUMBER_RIGHT (376)
  478. #define NUMBER_BOTTOM (354)
  479. #define PERCENT_LEFT (414) // percent number_left + 2*number_width
  480. #define PERCENT_TOP (300)
  481. #define PERCENT_RIGHT (462)
  482. #define PERCENT_BOTTOM (354)
  483. #define TOP_ANIMATION_LEFT (316) // top animation
  484. #define TOP_ANIMATION_TOP (100)
  485. #define TOP_ANIMATION_RIGHT (451)
  486. #define TOP_ANIMATION_BOTTOM (124)
  487. // for old animation
  488. #define BAR_LEFT (334)
  489. #define BAR_TOP (243)
  490. #define BAR_RIGHT (434)
  491. #define BAR_BOTTOM (463)
  492. #elif defined(XGANL)
  493. // xganl 1024*768
  494. // battery capacity rectangle
  495. #define CAPACITY_LEFT (444) // battery capacity center
  496. #define CAPACITY_TOP (314)
  497. #define CAPACITY_RIGHT (579)
  498. #define CAPACITY_BOTTOM (530)
  499. #define NUMBER_LEFT (467) // number
  500. #define NUMBER_TOP (170)
  501. #define NUMBER_RIGHT (505)
  502. #define NUMBER_BOTTOM (224)
  503. #define PERCENT_LEFT (543) // percent number_left + 2*number_width
  504. #define PERCENT_TOP (170)
  505. #define PERCENT_RIGHT (591)
  506. #define PERCENT_BOTTOM (224)
  507. #define TOP_ANIMATION_LEFT (444) // top animation
  508. #define TOP_ANIMATION_TOP (100)
  509. #define TOP_ANIMATION_RIGHT (579)
  510. #define TOP_ANIMATION_BOTTOM (124)
  511. // for old animation
  512. #define BAR_LEFT (486)
  513. #define BAR_TOP (292)
  514. #define BAR_RIGHT (590)
  515. #define BAR_BOTTOM (506)
  516. #elif defined(QXGA)
  517. // qxga 1536x2048
  518. // battery capacity rectangle
  519. #define CAPACITY_LEFT (605) // battery capacity center
  520. #define CAPACITY_TOP (857)
  521. #define CAPACITY_RIGHT (929)
  522. #define CAPACITY_BOTTOM (1375)
  523. #define NUMBER_LEFT (662) // number
  524. #define NUMBER_TOP (517)
  525. #define NUMBER_RIGHT (756)
  526. #define NUMBER_BOTTOM (647)
  527. #define PERCENT_LEFT (850) // percent number_left + 2*number_width
  528. #define PERCENT_TOP (517)
  529. #define PERCENT_RIGHT (968)
  530. #define PERCENT_BOTTOM (647)
  531. #define TOP_ANIMATION_LEFT (605) // top animation
  532. #define TOP_ANIMATION_TOP (100)
  533. #define TOP_ANIMATION_RIGHT (929)
  534. #define TOP_ANIMATION_BOTTOM (155)
  535. // for old animation
  536. #define BAR_LEFT (693)
  537. #define BAR_TOP (381)
  538. #define BAR_RIGHT (844)
  539. #define BAR_BOTTOM (725)
  540. #else
  541. // default wvga 480*800
  542. // battery capacity rectangle
  543. #define CAPACITY_LEFT (172) // battery capacity center
  544. #define CAPACITY_TOP (330)
  545. #define CAPACITY_RIGHT (307)
  546. #define CAPACITY_BOTTOM (546)
  547. // first number rectangle
  548. #define NUMBER_LEFT (178) // number
  549. #define NUMBER_TOP (190)
  550. #define NUMBER_RIGHT (216)
  551. #define NUMBER_BOTTOM (244)
  552. // % rectangle
  553. #define PERCENT_LEFT (254) // percent number_left + 2*number_width
  554. #define PERCENT_TOP (190)
  555. #define PERCENT_RIGHT (302)
  556. #define PERCENT_BOTTOM (244)
  557. // top animation part
  558. #define TOP_ANIMATION_LEFT (172) // top animation
  559. #define TOP_ANIMATION_TOP (100)
  560. #define TOP_ANIMATION_RIGHT (307)
  561. #define TOP_ANIMATION_BOTTOM (124)
  562. // for old animation
  563. #define BAR_LEFT (209)
  564. #define BAR_TOP (149)
  565. #define BAR_RIGHT (271)
  566. #define BAR_BOTTOM (282)
  567. #endif
  568. /* The option of new charging animation */
  569. #define ANIMATION_NEW
  570. #endif // __CUST_DISPLAY_H__