FreeCalypso > hg > fc-magnetite
diff src/cs/drivers/drv_app/r2d/lcds/PC_CSAMPLE/r2d_window_shape.c @ 0:945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
binary blobs and LCD demo files have been excluded,
all line endings are LF only
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 25 Sep 2016 22:50:11 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cs/drivers/drv_app/r2d/lcds/PC_CSAMPLE/r2d_window_shape.c Sun Sep 25 22:50:11 2016 +0000 @@ -0,0 +1,127 @@ +#ifdef _WINDOWS + +#include "r2d/r2d_config.h" + +typedef struct P +{ + long x; + long y; +} POINT; + +// bezier curve for phone shape (R2D_PC_CONTOUR_POINTS) points +const POINT r2d_phone_shape[R2D_PC_CONTOUR_POINTS]= +{ +{150,17}, +{133,17}, +{116,18}, +{101,20}, +{90,23}, +{82,26}, +{75,32}, +{68,39}, +{61,49}, +{55,57}, +{50,66}, +{46,76}, +{43,85}, +{39,97}, +{36,106}, +{33,117}, +{31,127}, +{28,132}, +{23,135}, +{22,140}, +{22,146}, +{24,151}, +{23,158}, +{20,162}, +{17,167}, +{17,173}, +{18,178}, +{20,186}, +{19,197}, +{19,206}, +{18,220}, +{17,234}, +{16,247}, +{16,259}, +{16,272}, +{16,284}, +{17,296}, +{18,308}, +{18,321}, +{19,336}, +{20,350}, +{21,366}, +{23,382}, +{25,400}, +{27,414}, +{29,426}, +{31,436}, +{33,446}, +{34,458}, +{36,470}, +{39,484}, +{42,502}, +{46,516}, +{51,533}, +{53,545}, +{57,555}, +{61,562}, +{67,570}, +{78,577}, +{91,582}, +{107,587}, +{122,590}, +{144,591}, +{160,590}, +{176,588}, +{192,585}, +{206,580}, +{219,572}, +{230,561}, +{236,545}, +{241,532}, +{245,517}, +{248,502}, +{253,483}, +{256,468}, +{260,454}, +{264,439}, +{267,425}, +{270,409}, +{273,392}, +{277,368}, +{280,345}, +{283,321}, +{284,299}, +{286,277}, +{287,251}, +{287,227}, +{285,199}, +{283,179}, +{282,163}, +{281,152}, +{284,146}, +{284,139}, +{282,134}, +{278,130}, +{276,121}, +{271,108}, +{267,95}, +{263,82}, +{259,70}, +{254,59}, +{249,49}, +{242,41}, +{233,35}, +{225,29}, +{215,24}, +{203,20}, +{191,19}, +{179,17}, +{166,18}, +}; + +#endif +