… | |
… | |
36 | int end_y;
|
36 | int end_y;
|
37 | int nt_text_start_x = 0;
|
37 | int nt_text_start_x = 0;
|
38 | int nt_text_start_y = 0;
|
38 | int nt_text_start_y = 0;
|
39 | int nt_font_size = 10;
|
39 | int nt_font_size = 10;
|
40 | float draw_factor = 1;
|
40 | float draw_factor = 1;
|
41 | int OSD_element_bg_001 = Color.argb(255, 80, 80, 150); // Color.argb(255, 190, 190, 190); // Color.argb(140, 136, 136, 136);
|
41 | int OSD_element_bg_001 = Navit.OSD_blueish_bg_color; // Color.argb(255, 190, 190, 190); // Color.argb(140, 136, 136, 136);
|
42 | String my_text = "";
|
42 | String my_text = "";
|
43 | int w2;
|
43 | int w2;
|
44 | int h2;
|
44 | int h2;
|
45 | int w;
|
45 | int w;
|
46 | int h;
|
46 | int h;
|
… | |
… | |
95 | nt_text_start_x = (int) (20 * real_factor);
|
95 | nt_text_start_x = (int) (20 * real_factor);
|
96 | nt_text_start_y = (int) (30 * real_factor);
|
96 | nt_text_start_y = (int) (30 * real_factor);
|
97 | nt_font_size = (int) (24 * real_factor);
|
97 | nt_font_size = (int) (24 * real_factor);
|
98 | }
|
98 | }
|
99 |
|
99 |
|
100 | public void onDraw(Canvas c)
|
100 | public void onDraw2222222(Canvas c)
|
101 | {
|
101 | {
|
|
|
102 | if (1 == 2 + 2)
|
|
|
103 | {
|
|
|
104 | // System.out.println("xxxxxxxxxxxxx");
|
|
|
105 | return;
|
|
|
106 | }
|
|
|
107 |
|
102 | super.onDraw(c);
|
108 | // super.onDraw(c);
|
103 | int dest_valid = NavitGraphics.CallbackDestinationValid2();
|
109 | int dest_valid = NavitGraphics.CallbackDestinationValid2();
|
104 |
|
110 |
|
105 | try
|
111 | try
|
106 | {
|
112 | {
|
107 | if ((Navit.OSD_compass.direct_distance_to_target_valid) && (dest_valid > 0))
|
113 | if ((Navit.OSD_compass.direct_distance_to_target_valid) && (dest_valid > 0))
|