| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007 |
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2008
- *
- * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
- * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
- * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
- * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
- * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
- * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
- * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
- * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
- * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
- * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
- *
- * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
- * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
- * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
- * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
- * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
- *
- * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
- * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
- * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
- * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
- * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
- *
- *****************************************************************************/
- /*
- // new animation parameters example:WVGA (480*800)
- // A , start point of first number rectangle
- // B , left_top point of battery_capacity fill_in rectangle
- // c , left_bottom point of battery_capacity fill_in rectangle
- // battery capacity rectangle
- #define CAPACITY_LEFT (172) // CAPACITY_LEFT = B.x = 172
- #define CAPACITY_TOP (330) // CAPACITY_TOP = B.y = 330
- #define CAPACITY_RIGHT (307) // CAPACITY_RIGHT = B.x + fill_line.w = 172 + 135
- #define CAPACITY_BOTTOM (546) // CAPACITY_BOTTOM = C.y = 546
- // first number rectangle
- #define NUMBER_LEFT (178) // NUMBER_LEFT = A.x
- #define NUMBER_TOP (190) // NUMBER_TOP = A.y
- #define NUMBER_RIGHT (216) // NUMBER_RIGHT = A.x + num.w = 178 + 38
- #define NUMBER_BOTTOM (244) // NUMBER_BOTTOM = A.y + num.h = 190 + 54
- // % rectangle
- #define PERCENT_LEFT (254) // PERCENT_LEFT = A.x + 2*num.w = 178 + 2*38
- #define PERCENT_TOP (190) // PERCENT_TOP = A.y
- #define PERCENT_RIGHT (302) // PERCENT_LEFT = A.x + 2*num.w +(%).w
- #define PERCENT_BOTTOM (244) // PERCENT_BOTTOM = A.y + (%).h = 190 + 54
- // top animation part
- #define TOP_ANIMATION_LEFT (172) // TOP_ANIMATION_LEFT = B.x
- #define TOP_ANIMATION_TOP (100) // 100
- #define TOP_ANIMATION_RIGHT (307) // TOP_ANIMATION_LEFT = B.x + fill_line.w = 172 + 135
- #define TOP_ANIMATION_BOTTOM (124) // TOP_ANIMATION_BOTTOM = TOP_ANIMATION_TOP + fill_line.h = 100 + 24
- */
- #ifndef __CUST_DISPLAY_H__
- #define __CUST_DISPLAY_H__
- // color
- #define BAR_OCCUPIED_COLOR (0x07E0) // Green
- #define BAR_EMPTY_COLOR (0xFFFF) // White
- #define BAR_BG_COLOR (0x0000) // Black
- // LOGO number
- #define ANIM_V0_LOGO_NUM 5 // version 0: show 4 recatangle growing animation without battery number
- #define ANIM_V1_LOGO_NUM 39 // version 1: show wave animation with battery number
- #define ANIM_V2_LOGO_NUM 68 // version 2: show wireless charging animation
- // Common LOGO index
- #define BOOT_LOGO_INDEX 0
- #define KERNEL_LOGO_INDEX 38
- #define ANIM_V0_BACKGROUND_INDEX 1
- #define ANIM_V1_BACKGROUND_INDEX 35
- #define LOW_BATTERY_INDEX 2
- #define LOW_BATTERY01_INDEX 39
- #define LOW_BATTERY02_INDEX 40
- #define LOW_BATTERY_REMIND_INDEX 41
- #define CHARGER_OV_INDEX 3
- #define FULL_BATTERY_INDEX 37
- // version 1: show wave animation with battery number
- // NUMBER LOGO INDEX
- #define NUMBER_PIC_START_0 4
- #define NUMBER_PIC_PERCENT 14
- // DYNAMIC ANIMATION LOGO INDEX
- #define BAT_ANIM_START_0 15
- // LOW BATTERY(0~10%) ANIMATION LOGO
- #define LOW_BAT_ANIM_START_0 25
- #define ANIM_LINE_INDEX 36
- // version 2: show wireless charging animation logo index
- #define V2_NUM_START_0_INDEX 42
- #define V2_NUM_PERCENT_INDEX 52
-
- #define V2_BAT_0_10_START_INDEX 53
- #define V2_BAT_10_40_START_INDEX 57
- #define V2_BAT_40_80_START_INDEX 61
- #define V2_BAT_80_100_START_NDEX 65
- #define V2_BAT_0_INDEX 69
- #define V2_BAT_100_INDEX 70
- #if defined(FHD) || defined(CU_FHD) || defined(CMCC_FHD) || defined(CT_FHD) || defined(CMCC_LTE_FHD)
- // fhd 1080*1920
-
- // battery capacity rectangle
- #define CAPACITY_LEFT (387) // battery capacity center
- #define CAPACITY_TOP (802)
- #define CAPACITY_RIGHT (691)
- #define CAPACITY_BOTTOM (1292)
- // first number rectangle
- #define NUMBER_LEFT (351+84) // number
- #define NUMBER_TOP (479)
- #define NUMBER_RIGHT (435+84)
- #define NUMBER_BOTTOM (600)
- // % rectangle
- #define PERCENT_LEFT (519+84) // percent number_left + 2*number_width
- #define PERCENT_TOP (479)
- #define PERCENT_RIGHT (627+84)
- #define PERCENT_BOTTOM (600)
- // top animation part
- #define TOP_ANIMATION_LEFT (387) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (691)
- #define TOP_ANIMATION_BOTTOM (152)
- // for old animation
- #define BAR_LEFT (470)
- #define BAR_TOP (356)
- #define BAR_RIGHT (610)
- #define BAR_BOTTOM (678)
- #elif defined(FHDPLUS)
- // fhd 1080*2160
- // battery capacity rectangle
- #define CAPACITY_LEFT (387) // battery capacity center
- #define CAPACITY_TOP (922)
- #define CAPACITY_RIGHT (691)
- #define CAPACITY_BOTTOM (1413)
- // first number rectangle
- #define NUMBER_LEFT (351+84) // number
- #define NUMBER_TOP (599)
- #define NUMBER_RIGHT (435+84)
- #define NUMBER_BOTTOM (720)
- // % rectangle
- #define PERCENT_LEFT (519+84) // percent number_left + 2*number_width
- #define PERCENT_TOP (599)
- #define PERCENT_RIGHT (627+84)
- #define PERCENT_BOTTOM (720)
- // top animation part
- #define TOP_ANIMATION_LEFT (387) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (691)
- #define TOP_ANIMATION_BOTTOM (152)
- // for old animation
- #define BAR_LEFT (470)
- #define BAR_TOP (356)
- #define BAR_RIGHT (610)
- #define BAR_BOTTOM (678)
- #elif defined(FHDPLUS2400)
- // fhd 1080*2520
- // battery capacity rectangle
- #define CAPACITY_LEFT (387) // battery capacity center
- #define CAPACITY_TOP (1042)
- #define CAPACITY_RIGHT (691)
- #define CAPACITY_BOTTOM (1533)
- // first number rectangle
- #define NUMBER_LEFT (370+45) // number
- #define NUMBER_TOP (729)
- #define NUMBER_RIGHT (415+45)
- #define NUMBER_BOTTOM (840)
- // % rectangle
- #define PERCENT_LEFT (370+90) // percent number_left + 2*number_width
- #define PERCENT_TOP (729)
- #define PERCENT_RIGHT (460+57)
- #define PERCENT_BOTTOM (840)
- // top animation part
- #define TOP_ANIMATION_LEFT (387) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (691)
- #define TOP_ANIMATION_BOTTOM (147)
- // for old animation
- #define BAR_LEFT (470)
- #define BAR_TOP (356)
- #define BAR_RIGHT (610)
- #define BAR_BOTTOM (678)
- #elif defined(FHDPLUS2520)
- // fhd 1080*2520
- // battery capacity rectangle
- #define CAPACITY_LEFT (387) // battery capacity center
- #define CAPACITY_TOP (1102)
- #define CAPACITY_RIGHT (691)
- #define CAPACITY_BOTTOM (1593)
- // first number rectangle
- #define NUMBER_LEFT (351+84) // number
- #define NUMBER_TOP (779)
- #define NUMBER_RIGHT (435+84)
- #define NUMBER_BOTTOM (900)
- // % rectangle
- #define PERCENT_LEFT (519+84) // percent number_left + 2*number_width
- #define PERCENT_TOP (779)
- #define PERCENT_RIGHT (627+84)
- #define PERCENT_BOTTOM (900)
- // top animation part
- #define TOP_ANIMATION_LEFT (387) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (691)
- #define TOP_ANIMATION_BOTTOM (152)
- // for old animation
- #define BAR_LEFT (470)
- #define BAR_TOP (356)
- #define BAR_RIGHT (610)
- #define BAR_BOTTOM (678)
- #elif defined(WQHD) || defined(CU_WQHD) || defined(CMCC_WQHD) || defined(CT_WQHD) || defined(CMCC_LTE_WQHD) || defined(CT_LTE_WQHD) || defined(CU_LTE_WQHD)
- // wqhd 1440*2560
- // battery capacity rectangle
- #define CAPACITY_LEFT (556) // battery capacity center
- #define CAPACITY_TOP (1112)
- #define CAPACITY_RIGHT (882)
- #define CAPACITY_BOTTOM (1630)
- // first number rectangle
- #define NUMBER_LEFT (570) // number
- #define NUMBER_TOP (770)
- #define NUMBER_RIGHT (660)
- #define NUMBER_BOTTOM (898)
- // % rectangle
- #define PERCENT_LEFT (750) // percent number_left + 2*number_width
- #define PERCENT_TOP (770)
- #define PERCENT_RIGHT (864)
- #define PERCENT_BOTTOM (898)
- // top animation part
- #define TOP_ANIMATION_LEFT (556) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (882)
- #define TOP_ANIMATION_BOTTOM (158)
- // for old animation
- #define BAR_LEFT (443)
- #define BAR_TOP (337)
- #define BAR_RIGHT (574)
- #define BAR_BOTTOM (641)
- #elif defined(HD720) || defined(CU_HD720) || defined(CMCC_HD720) || defined(CT_HD720) || defined(CMCC_LTE_HD720)
- // hd720 720*1280
- // battery capacity rectangle
- #define CAPACITY_LEFT (278) // battery capacity center
- #define CAPACITY_TOP (556)
- #define CAPACITY_RIGHT (441)
- #define CAPACITY_BOTTOM (817)
- // first number rectangle
- #define NUMBER_LEFT (290) // number
- #define NUMBER_TOP (386)
- #define NUMBER_RIGHT (335)
- #define NUMBER_BOTTOM (450)
- // % rectangle
- #define PERCENT_LEFT (380) // percent number_left + 2*number_width
- #define PERCENT_TOP (386)
- #define PERCENT_RIGHT (437)
- #define PERCENT_BOTTOM (450)
- // top animation part
- #define TOP_ANIMATION_LEFT (278) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (441)
- #define TOP_ANIMATION_BOTTOM (129)
- // for old animation
- #define BAR_LEFT (313)
- #define BAR_TOP (238)
- #define BAR_RIGHT (406)
- #define BAR_BOTTOM (453)
- #elif defined(HDPLUS)
- // hdplus 720*1440
- // battery capacity rectangle
- #define CAPACITY_LEFT (278) // battery capacity center
- #define CAPACITY_TOP (636)
- #define CAPACITY_RIGHT (441)
- #define CAPACITY_BOTTOM (898)
- // first number rectangle
- #define NUMBER_LEFT (290) // number
- #define NUMBER_TOP (465)
- #define NUMBER_RIGHT (335)
- #define NUMBER_BOTTOM (529)
- // % rectangle
- #define PERCENT_LEFT (380) // percent number_left + 2*number_width
- #define PERCENT_TOP (465)
- #define PERCENT_RIGHT (437)
- #define PERCENT_BOTTOM (529)
- // top animation part
- #define TOP_ANIMATION_LEFT (278) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (441)
- #define TOP_ANIMATION_BOTTOM (129)
- // for old animation
- #define BAR_LEFT (313)
- #define BAR_TOP (238)
- #define BAR_RIGHT (406)
- #define BAR_BOTTOM (453)
- #elif defined(HDPLUS1500)
- // hdplus1500 720*1500
- // battery capacity rectangle
- #define CAPACITY_LEFT (278) // battery capacity center
- #define CAPACITY_TOP (640)
- #define CAPACITY_RIGHT (441)
- #define CAPACITY_BOTTOM (955)
- // first number rectangle
- #define NUMBER_LEFT (290) // number
- #define NUMBER_TOP (450)
- #define NUMBER_RIGHT (335)
- #define NUMBER_BOTTOM (515)
- // % rectangle
- #define PERCENT_LEFT (380) // percent number_left + 2*number_width
- #define PERCENT_TOP (450)
- #define PERCENT_RIGHT (437)
- #define PERCENT_BOTTOM (515)
- // top animation part
- #define TOP_ANIMATION_LEFT (278) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (441)
- #define TOP_ANIMATION_BOTTOM (129)
- // for old animation
- #define BAR_LEFT (313)
- #define BAR_TOP (238)
- #define BAR_RIGHT (406)
- #define BAR_BOTTOM (453)
- #elif defined(HDPLUS1520)
- // hdplus1520 (19:9) 720*1520
- // battery capacity rectangle
- #define CAPACITY_LEFT (278) // battery capacity center
- #define CAPACITY_TOP (653)
- #define CAPACITY_RIGHT (441)
- #define CAPACITY_BOTTOM (970)
- // first number rectangle
- #define NUMBER_LEFT (290) // number
- #define NUMBER_TOP (460)
- #define NUMBER_RIGHT (335)
- #define NUMBER_BOTTOM (535)
- // % rectangle
- #define PERCENT_LEFT (380) // percent number_left + 2*number_width
- #define PERCENT_TOP (460)
- #define PERCENT_RIGHT (437)
- #define PERCENT_BOTTOM (535)
- // top animation part
- #define TOP_ANIMATION_LEFT (278) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (441)
- #define TOP_ANIMATION_BOTTOM (129)
- // for old animation
- #define BAR_LEFT (313)
- #define BAR_TOP (238)
- #define BAR_RIGHT (406)
- #define BAR_BOTTOM (453)
- #elif defined(HDPLUS1560)
- // hdplus1560(19:9) 720*1560
- // battery capacity rectangle
- #define CAPACITY_LEFT (278) // battery capacity center
- #define CAPACITY_TOP (678)
- #define CAPACITY_RIGHT (441)
- #define CAPACITY_BOTTOM (1000)
- // first number rectangle
- #define NUMBER_LEFT (290) // number
- #define NUMBER_TOP (480)
- #define NUMBER_RIGHT (335)
- #define NUMBER_BOTTOM (575)
- // % rectangle
- #define PERCENT_LEFT (380) // percent number_left + 2*number_width
- #define PERCENT_TOP (480)
- #define PERCENT_RIGHT (437)
- #define PERCENT_BOTTOM (575)
- // top animation part
- #define TOP_ANIMATION_LEFT (278) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (441)
- #define TOP_ANIMATION_BOTTOM (129)
- // for old animation
- #define BAR_LEFT (313)
- #define BAR_TOP (238)
- #define BAR_RIGHT (406)
- #define BAR_BOTTOM (453)
- #elif defined(HDPLUS1600)
- // hdplus1560(19:9) 720*1600
- // battery capacity rectangle
- #define CAPACITY_LEFT (278) // battery capacity center
- #define CAPACITY_TOP (703)
- #define CAPACITY_RIGHT (441)
- #define CAPACITY_BOTTOM (1030)
- // first number rectangle
- #define NUMBER_LEFT (290) // number
- #define NUMBER_TOP (500)
- #define NUMBER_RIGHT (335)
- #define NUMBER_BOTTOM (615)
- // % rectangle
- #define PERCENT_LEFT (380) // percent number_left + 2*number_width
- #define PERCENT_TOP (500)
- #define PERCENT_RIGHT (437)
- #define PERCENT_BOTTOM (615)
- // top animation part
- #define TOP_ANIMATION_LEFT (278) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (441)
- #define TOP_ANIMATION_BOTTOM (129)
- // for old animation
- #define BAR_LEFT (313)
- #define BAR_TOP (238)
- #define BAR_RIGHT (406)
- #define BAR_BOTTOM (453)
- #elif defined(HDPLUS1680)
- // hdplus1680(19:9) 720*1680
- // battery capacity rectangle
- #define CAPACITY_LEFT (278) // battery capacity center
- #define CAPACITY_TOP (753)
- #define CAPACITY_RIGHT (441)
- #define CAPACITY_BOTTOM (1090)
- // first number rectangle
- #define NUMBER_LEFT (290) // number
- #define NUMBER_TOP (540)
- #define NUMBER_RIGHT (335)
- #define NUMBER_BOTTOM (695)
- // % rectangle
- #define PERCENT_LEFT (380) // percent number_left + 2*number_width
- #define PERCENT_TOP (540)
- #define PERCENT_RIGHT (437)
- #define PERCENT_BOTTOM (695)
- // top animation part
- #define TOP_ANIMATION_LEFT (278) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (441)
- #define TOP_ANIMATION_BOTTOM (147)
- // for old animation
- #define BAR_LEFT (313)
- #define BAR_TOP (238)
- #define BAR_RIGHT (406)
- #define BAR_BOTTOM (453)
- #elif defined(FWVGA) || defined(CU_FWVGA) || defined(CMCC_FWVGA) || defined(CT_FWVGA) || defined(CMCC_LTE_FWVGA) || defined(CT_LTE_FWVGA) || defined(CU_LTE_FWVGA)
- // fwvga 480*854
- // battery capacity rectangle
- #define CAPACITY_LEFT (172) // battery capacity center
- #define CAPACITY_TOP (357)
- #define CAPACITY_RIGHT (307)
- #define CAPACITY_BOTTOM (573)
- // first number rectangle
- #define NUMBER_LEFT (172) // number
- #define NUMBER_TOP (213)
- #define NUMBER_RIGHT (210)
- #define NUMBER_BOTTOM (267)
- // % rectangle
- #define PERCENT_LEFT (248) // percent number_left + 2*number_width
- #define PERCENT_TOP (213)
- #define PERCENT_RIGHT (296)
- #define PERCENT_BOTTOM (267)
- // top animation part
- #define TOP_ANIMATION_LEFT (172) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (307)
- #define TOP_ANIMATION_BOTTOM (124)
- // for old animation
- #define BAR_LEFT (184)
- #define BAR_TOP (227)
- #define BAR_RIGHT (294)
- #define BAR_BOTTOM (437)
- #elif defined(FWVGAPLUS)
- // fwvga 480*960
- // battery capacity rectangle
- #define CAPACITY_LEFT (172) // battery capacity center
- #define CAPACITY_TOP (405)
- #define CAPACITY_RIGHT (307)
- #define CAPACITY_BOTTOM (645)
- // first number rectangle
- #define NUMBER_LEFT (172) // number
- #define NUMBER_TOP (245)
- #define NUMBER_RIGHT (210)
- #define NUMBER_BOTTOM (305)
- // % rectangle
- #define PERCENT_LEFT (248) // percent number_left + 2*number_width
- #define PERCENT_TOP (245)
- #define PERCENT_RIGHT (296)
- #define PERCENT_BOTTOM (305)
- // top animation part
- #define TOP_ANIMATION_LEFT (172) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (307)
- #define TOP_ANIMATION_BOTTOM (124)
- // for old animation
- #define BAR_LEFT (184)
- #define BAR_TOP (227)
- #define BAR_RIGHT (294)
- #define BAR_BOTTOM (437)
- #elif defined(QHD) || defined(CU_QHD) || defined(CMCC_QHD) || defined(CT_QHD) || defined(CMCC_LTE_QHD)
- // qhd 540*960
- // battery capacity rectangle
- #define CAPACITY_LEFT (202) // battery capacity center
- #define CAPACITY_TOP (410)
- #define CAPACITY_RIGHT (337)
- #define CAPACITY_BOTTOM (626)
- // first number rectangle
- #define NUMBER_LEFT (202) // number
- #define NUMBER_TOP (266)
- #define NUMBER_RIGHT (240)
- #define NUMBER_BOTTOM (320)
- // % rectangle
- #define PERCENT_LEFT (278) // percent number_left + 2*number_width
- #define PERCENT_TOP (266)
- #define PERCENT_RIGHT (326)
- #define PERCENT_BOTTOM (320)
- // top animation part
- #define TOP_ANIMATION_LEFT (202) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (337)
- #define TOP_ANIMATION_BOTTOM (124)
- // for old animation
- #define BAR_LEFT (235)
- #define BAR_TOP (179)
- #define BAR_RIGHT (305)
- #define BAR_BOTTOM (340)
- #elif defined(WVGA) || defined(CU_WVGA) || defined(CMCC_WVGA) || defined(CT_WVGA) || defined(CMCC_LTE_WVGA)
- // default wvga 480*800
- // battery capacity rectangle
- #define CAPACITY_LEFT (172) // battery capacity center
- #define CAPACITY_TOP (330)
- #define CAPACITY_RIGHT (307)
- #define CAPACITY_BOTTOM (546)
- // first number rectangle
- #define NUMBER_LEFT (178) // number
- #define NUMBER_TOP (190)
- #define NUMBER_RIGHT (216)
- #define NUMBER_BOTTOM (244)
- // % rectangle
- #define PERCENT_LEFT (254) // percent number_left + 2*number_width
- #define PERCENT_TOP (190)
- #define PERCENT_RIGHT (302)
- #define PERCENT_BOTTOM (244)
- // top animation part
- #define TOP_ANIMATION_LEFT (172) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (307)
- #define TOP_ANIMATION_BOTTOM (124)
- // for old animation
- #define BAR_LEFT (209)
- #define BAR_TOP (149)
- #define BAR_RIGHT (271)
- #define BAR_BOTTOM (282)
- #elif defined(HVGA) || defined(CU_HVGA) || defined(CMCC_HVGA) || defined(CT_HVGA) || defined(CMCC_LTE_HVGA)
- // hvga 320*480
- // battery capacity rectangle
- #define CAPACITY_LEFT (109) // battery capacity center
- #define CAPACITY_TOP (189)
- #define CAPACITY_RIGHT (211)
- #define CAPACITY_BOTTOM (350)
- // first number rectangle
- #define NUMBER_LEFT (126) // number
- #define NUMBER_TOP (95)
- #define NUMBER_RIGHT (153)
- #define NUMBER_BOTTOM (131)
- // % rectangle
- #define PERCENT_LEFT (180) // percent number_left + 2*number_width
- #define PERCENT_TOP (95)
- #define PERCENT_RIGHT (212)
- #define PERCENT_BOTTOM (131)
- // top animation part
- #define TOP_ANIMATION_LEFT (109) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (211)
- #define TOP_ANIMATION_BOTTOM (118)
- // for old animation
- #define BAR_LEFT (129)
- #define BAR_TOP (128)
- #define BAR_RIGHT (190)
- #define BAR_BOTTOM (245)
- #elif defined(QVGA) || defined(CU_QVGA) || defined(CMCC_QVGA) || defined(CT_QVGA) || defined(CMCC_LTE_QVGA)
- // hvga 320*480
- // battery capacity rectangle
- #define CAPACITY_LEFT (82) // battery capacity center
- #define CAPACITY_TOP (124)
- #define CAPACITY_RIGHT (158)
- #define CAPACITY_BOTTOM (241)
- // first number rectangle
- #define NUMBER_LEFT (93) // number
- #define NUMBER_TOP (50)
- #define NUMBER_RIGHT (109)
- #define NUMBER_BOTTOM (73)
- // % rectangle
- #define PERCENT_LEFT (125) // percent number_left + 2*number_width
- #define PERCENT_TOP (50)
- #define PERCENT_RIGHT (145)
- #define PERCENT_BOTTOM (73)
- // top animation part
- #define TOP_ANIMATION_LEFT (82) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (158)
- #define TOP_ANIMATION_BOTTOM (113)
- // for old animation
- #define BAR_LEFT (97)
- #define BAR_TOP (96)
- #define BAR_RIGHT (140)
- #define BAR_BOTTOM (184)
-
- #elif defined(WSVGA)
- // wsvga 600*1024
- // battery capacity rectangle
- #define CAPACITY_LEFT (232) // battery capacity center
- #define CAPACITY_TOP (442)
- #define CAPACITY_RIGHT (367)
- #define CAPACITY_BOTTOM (658)
- // first number rectangle
- #define NUMBER_LEFT (250) // number
- #define NUMBER_TOP (300)
- #define NUMBER_RIGHT (288)
- #define NUMBER_BOTTOM (354)
- // % rectangle
- #define PERCENT_LEFT (326) // percent number_left + 2*number_width
- #define PERCENT_TOP (300)
- #define PERCENT_RIGHT (374)
- #define PERCENT_BOTTOM (354)
- // top animation part
- #define TOP_ANIMATION_LEFT (232) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (367)
- #define TOP_ANIMATION_BOTTOM (124)
- // for old animation
- #define BAR_LEFT (260)
- #define BAR_TOP (190)
- #define BAR_RIGHT (338)
- #define BAR_BOTTOM (360)
- #elif defined(WSVGANL)
- // wsvganl 1024*600
- // battery capacity rectangle
- #define CAPACITY_LEFT (444) // battery capacity center
- #define CAPACITY_TOP (230)
- #define CAPACITY_RIGHT (579) // 444 + 135
- #define CAPACITY_BOTTOM (446)
- // first number rectangle
- #define NUMBER_LEFT (466) // number
- #define NUMBER_TOP (90)
- #define NUMBER_RIGHT (504) // 466 + 38
- #define NUMBER_BOTTOM (144) // 90 + 54
- // % rectangle
- #define PERCENT_LEFT (542) // percent number_left + 2*number_width
- #define PERCENT_TOP (90)
- #define PERCENT_RIGHT (590)
- #define PERCENT_BOTTOM (144)
- // top animation part
- #define TOP_ANIMATION_LEFT (444) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (579)
- #define TOP_ANIMATION_BOTTOM (124)
- // for old animation
- #define BAR_LEFT (414)
- #define BAR_TOP (186)
- #define BAR_RIGHT (608)
- #define BAR_BOTTOM (477)
- #elif defined(WXGANL)
- // wxganl 1280*800
- // battery capacity rectangle
- #define CAPACITY_LEFT (558) // battery capacity center
- #define CAPACITY_TOP (265)
- #define CAPACITY_RIGHT (721) //558+163
- #define CAPACITY_BOTTOM (525)
- #define NUMBER_LEFT (585) // number
- #define NUMBER_TOP (95)
- #define NUMBER_RIGHT (630)//585+45
- #define NUMBER_BOTTOM (159) //95+64
- #define PERCENT_LEFT (675) // percent number_left + 2*number_width
- #define PERCENT_TOP (95)
- #define PERCENT_RIGHT (732) //675+57
- #define PERCENT_BOTTOM (159)
- #define TOP_ANIMATION_LEFT (558) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (721)
- #define TOP_ANIMATION_BOTTOM (129)
- // for old animation
- #define BAR_LEFT (525)
- #define BAR_TOP (250)
- #define BAR_RIGHT (755)
- #define BAR_BOTTOM (640)
-
- #elif defined(WXGA)
- // wxga 800*1280
- // battery capacity rectangle
- #define CAPACITY_LEFT (318) // battery capacity center
- #define CAPACITY_TOP (556)
- #define CAPACITY_RIGHT (481) //318+163
- #define CAPACITY_BOTTOM (815)
- #define NUMBER_LEFT (345) // number
- #define NUMBER_TOP (385)
- #define NUMBER_RIGHT (390) //345+45
- #define NUMBER_BOTTOM (449) //385+64
- #define PERCENT_LEFT (435) // percent number_left + 2*number_width
- #define PERCENT_TOP (385)
- #define PERCENT_RIGHT (492) //435+57
- #define PERCENT_BOTTOM (449)
- #define TOP_ANIMATION_LEFT (318) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (481)
- #define TOP_ANIMATION_BOTTOM (129)
- // for old animation
- #define BAR_LEFT (348)
- #define BAR_TOP (238)
- #define BAR_RIGHT (453)
- #define BAR_BOTTOM (452)
-
- #elif defined(WUXGANL)
- // wuxganl 1920*1200
- // battery capacity rectangle
- #define CAPACITY_LEFT (806) // battery capacity center
- #define CAPACITY_TOP (443)
- #define CAPACITY_RIGHT (1110)
- #define CAPACITY_BOTTOM (929)
- #define NUMBER_LEFT (855) // number
- #define NUMBER_TOP (124)
- #define NUMBER_RIGHT (939) //855+84
- #define NUMBER_BOTTOM (245)
- #define PERCENT_LEFT (1023) // percent number_left + 2*number_width
- #define PERCENT_TOP (124)
- #define PERCENT_RIGHT (1131) //1023+108
- #define PERCENT_BOTTOM (245) //124+121
- #define TOP_ANIMATION_LEFT (806) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (1110) //806+304
- #define TOP_ANIMATION_BOTTOM (152)
- // for old animation
- #define BAR_LEFT (890)
- #define BAR_TOP (357)
- #define BAR_RIGHT (1030)
- #define BAR_BOTTOM (678)
-
- #elif defined(WUXGA) || defined(CU_WUXGA)
- // wuxga 1200*1920
- // battery capacity rectangle
- #define CAPACITY_LEFT (447) // battery capacity center
- #define CAPACITY_TOP (803)
- #define CAPACITY_RIGHT (751)
- #define CAPACITY_BOTTOM (1289)
- #define NUMBER_LEFT (494) // number
- #define NUMBER_TOP (481)
- #define NUMBER_RIGHT (578)//494+84
- #define NUMBER_BOTTOM (602) //481+121
- #define PERCENT_LEFT (662) // percent number_left + 2*number_width
- #define PERCENT_TOP (481)
- #define PERCENT_RIGHT (770) //662+108
- #define PERCENT_BOTTOM (602) //481+121
- #define TOP_ANIMATION_LEFT (447) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (751)
- #define TOP_ANIMATION_BOTTOM (152)
- // for old animation
- #define BAR_LEFT (529)
- #define BAR_TOP (357)
- #define BAR_RIGHT (672)
- #define BAR_BOTTOM (680)
-
- #elif defined(XGA)
- // xga 768*1024
- // battery capacity rectangle
- #define CAPACITY_LEFT (316) // battery capacity center
- #define CAPACITY_TOP (442)
- #define CAPACITY_RIGHT (451)
- #define CAPACITY_BOTTOM (658)
- #define NUMBER_LEFT (338) // number
- #define NUMBER_TOP (300)
- #define NUMBER_RIGHT (376)
- #define NUMBER_BOTTOM (354)
- #define PERCENT_LEFT (414) // percent number_left + 2*number_width
- #define PERCENT_TOP (300)
- #define PERCENT_RIGHT (462)
- #define PERCENT_BOTTOM (354)
- #define TOP_ANIMATION_LEFT (316) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (451)
- #define TOP_ANIMATION_BOTTOM (124)
- // for old animation
- #define BAR_LEFT (334)
- #define BAR_TOP (243)
- #define BAR_RIGHT (434)
- #define BAR_BOTTOM (463)
-
- #elif defined(XGANL)
- // xganl 1024*768
- // battery capacity rectangle
- #define CAPACITY_LEFT (444) // battery capacity center
- #define CAPACITY_TOP (314)
- #define CAPACITY_RIGHT (579)
- #define CAPACITY_BOTTOM (530)
- #define NUMBER_LEFT (467) // number
- #define NUMBER_TOP (170)
- #define NUMBER_RIGHT (505)
- #define NUMBER_BOTTOM (224)
- #define PERCENT_LEFT (543) // percent number_left + 2*number_width
- #define PERCENT_TOP (170)
- #define PERCENT_RIGHT (591)
- #define PERCENT_BOTTOM (224)
- #define TOP_ANIMATION_LEFT (444) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (579)
- #define TOP_ANIMATION_BOTTOM (124)
- // for old animation
- #define BAR_LEFT (486)
- #define BAR_TOP (292)
- #define BAR_RIGHT (590)
- #define BAR_BOTTOM (506)
- #else
- // default wvga 480*800
- // battery capacity rectangle
- #define CAPACITY_LEFT (172) // battery capacity center
- #define CAPACITY_TOP (330)
- #define CAPACITY_RIGHT (307)
- #define CAPACITY_BOTTOM (546)
- // first number rectangle
- #define NUMBER_LEFT (178) // number
- #define NUMBER_TOP (190)
- #define NUMBER_RIGHT (216)
- #define NUMBER_BOTTOM (244)
- // % rectangle
- #define PERCENT_LEFT (254) // percent number_left + 2*number_width
- #define PERCENT_TOP (190)
- #define PERCENT_RIGHT (302)
- #define PERCENT_BOTTOM (244)
- // top animation part
- #define TOP_ANIMATION_LEFT (172) // top animation
- #define TOP_ANIMATION_TOP (100)
- #define TOP_ANIMATION_RIGHT (307)
- #define TOP_ANIMATION_BOTTOM (124)
- // for old animation
- #define BAR_LEFT (209)
- #define BAR_TOP (149)
- #define BAR_RIGHT (271)
- #define BAR_BOTTOM (282)
- #endif
- /* The option of new charging animation */
- #define ANIMATION_NEW
- #endif // __CUST_DISPLAY_H__
|