summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2012-10-18 05:43:07 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-10-18 05:43:07 +0000
commit838da7d9707232a30392712ebb972430fc89cdf9 (patch)
treeabf382aaf369c394df7a95d46923f5e72d5f13e8 /legacy
parentca7ed55ed485c663b569598785e9649b3a3d2152 (diff)
Ecore_Evas (Wayland): Add missing LOGFN to ecore_evas_wayland_common
code. Patch from Rafael Antognolli, Thanks :) Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 78147
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_common.c82
1 files changed, 82 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_common.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_common.c
index a417259fd1..6a49b2f035 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_common.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_common.c
@@ -2,6 +2,16 @@
2# include "config.h" 2# include "config.h"
3#endif 3#endif
4 4
5//#define LOGFNS 1
6
7#ifdef LOGFNS
8# include <stdio.h>
9# define LOGFN(fl, ln, fn) \
10 printf("-ECORE_EVAS-WL: %25s: %5i - %s\n", fl, ln, fn);
11#else
12# define LOGFN(fl, ln, fn)
13#endif
14
5#include "ecore_evas_private.h" 15#include "ecore_evas_private.h"
6#include "Ecore_Evas.h" 16#include "Ecore_Evas.h"
7 17
@@ -27,6 +37,8 @@ _ecore_evas_wl_common_cb_mouse_in(void *data __UNUSED__, int type __UNUSED__, vo
27 Ecore_Evas *ee; 37 Ecore_Evas *ee;
28 Ecore_Wl_Event_Mouse_In *ev; 38 Ecore_Wl_Event_Mouse_In *ev;
29 39
40 LOGFN(__FILE__, __LINE__, __FUNCTION__);
41
30 ev = event; 42 ev = event;
31 ee = ecore_event_window_match(ev->window); 43 ee = ecore_event_window_match(ev->window);
32 if ((!ee) || (ee->ignore_events)) return ECORE_CALLBACK_PASS_ON; 44 if ((!ee) || (ee->ignore_events)) return ECORE_CALLBACK_PASS_ON;
@@ -47,6 +59,8 @@ _ecore_evas_wl_common_cb_mouse_out(void *data __UNUSED__, int type __UNUSED__, v
47 Ecore_Evas *ee; 59 Ecore_Evas *ee;
48 Ecore_Wl_Event_Mouse_Out *ev; 60 Ecore_Wl_Event_Mouse_Out *ev;
49 61
62 LOGFN(__FILE__, __LINE__, __FUNCTION__);
63
50 ev = event; 64 ev = event;
51 ee = ecore_event_window_match(ev->window); 65 ee = ecore_event_window_match(ev->window);
52 if ((!ee) || (ee->ignore_events)) return ECORE_CALLBACK_PASS_ON; 66 if ((!ee) || (ee->ignore_events)) return ECORE_CALLBACK_PASS_ON;
@@ -68,6 +82,8 @@ _ecore_evas_wl_common_cb_focus_in(void *data __UNUSED__, int type __UNUSED__, vo
68 Ecore_Evas *ee; 82 Ecore_Evas *ee;
69 Ecore_Wl_Event_Focus_In *ev; 83 Ecore_Wl_Event_Focus_In *ev;
70 84
85 LOGFN(__FILE__, __LINE__, __FUNCTION__);
86
71 ev = event; 87 ev = event;
72 ee = ecore_event_window_match(ev->win); 88 ee = ecore_event_window_match(ev->win);
73 if ((!ee) || (ee->ignore_events)) return ECORE_CALLBACK_PASS_ON; 89 if ((!ee) || (ee->ignore_events)) return ECORE_CALLBACK_PASS_ON;
@@ -84,6 +100,8 @@ _ecore_evas_wl_common_cb_focus_out(void *data __UNUSED__, int type __UNUSED__, v
84 Ecore_Evas *ee; 100 Ecore_Evas *ee;
85 Ecore_Wl_Event_Focus_In *ev; 101 Ecore_Wl_Event_Focus_In *ev;
86 102
103 LOGFN(__FILE__, __LINE__, __FUNCTION__);
104
87 ev = event; 105 ev = event;
88 ee = ecore_event_window_match(ev->win); 106 ee = ecore_event_window_match(ev->win);
89 if ((!ee) || (ee->ignore_events)) return ECORE_CALLBACK_PASS_ON; 107 if ((!ee) || (ee->ignore_events)) return ECORE_CALLBACK_PASS_ON;
@@ -101,6 +119,8 @@ _ecore_evas_wl_common_cb_window_configure(void *data __UNUSED__, int type __UNUS
101 Ecore_Wl_Event_Window_Configure *ev; 119 Ecore_Wl_Event_Window_Configure *ev;
102 int nw = 0, nh = 0; 120 int nw = 0, nh = 0;
103 121
122 LOGFN(__FILE__, __LINE__, __FUNCTION__);
123
104 ev = event; 124 ev = event;
105 ee = ecore_event_window_match(ev->win); 125 ee = ecore_event_window_match(ev->win);
106 if (!ee) return ECORE_CALLBACK_PASS_ON; 126 if (!ee) return ECORE_CALLBACK_PASS_ON;
@@ -151,6 +171,8 @@ _ecore_evas_wl_common_cb_window_configure(void *data __UNUSED__, int type __UNUS
151int 171int
152_ecore_evas_wl_common_init(void) 172_ecore_evas_wl_common_init(void)
153{ 173{
174 LOGFN(__FILE__, __LINE__, __FUNCTION__);
175
154 if (++_ecore_evas_wl_init_count != 1) 176 if (++_ecore_evas_wl_init_count != 1)
155 return _ecore_evas_wl_init_count; 177 return _ecore_evas_wl_init_count;
156 178
@@ -180,6 +202,8 @@ _ecore_evas_wl_common_shutdown(void)
180{ 202{
181 unsigned int i = 0; 203 unsigned int i = 0;
182 204
205 LOGFN(__FILE__, __LINE__, __FUNCTION__);
206
183 if (--_ecore_evas_wl_init_count != 0) 207 if (--_ecore_evas_wl_init_count != 0)
184 return _ecore_evas_wl_init_count; 208 return _ecore_evas_wl_init_count;
185 209
@@ -197,6 +221,8 @@ _ecore_evas_wl_common_shutdown(void)
197void 221void
198_ecore_evas_wl_common_pre_free(Ecore_Evas *ee) 222_ecore_evas_wl_common_pre_free(Ecore_Evas *ee)
199{ 223{
224 LOGFN(__FILE__, __LINE__, __FUNCTION__);
225
200 if (!ee) return; 226 if (!ee) return;
201 if (ee->engine.wl.frame) evas_object_del(ee->engine.wl.frame); 227 if (ee->engine.wl.frame) evas_object_del(ee->engine.wl.frame);
202} 228}
@@ -204,6 +230,8 @@ _ecore_evas_wl_common_pre_free(Ecore_Evas *ee)
204void 230void
205_ecore_evas_wl_common_free(Ecore_Evas *ee) 231_ecore_evas_wl_common_free(Ecore_Evas *ee)
206{ 232{
233 LOGFN(__FILE__, __LINE__, __FUNCTION__);
234
207 if (ee->engine.wl.win) ecore_wl_window_free(ee->engine.wl.win); 235 if (ee->engine.wl.win) ecore_wl_window_free(ee->engine.wl.win);
208 ee->engine.wl.win = NULL; 236 ee->engine.wl.win = NULL;
209 237
@@ -217,6 +245,8 @@ _ecore_evas_wl_common_free(Ecore_Evas *ee)
217void 245void
218_ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h) 246_ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
219{ 247{
248 LOGFN(__FILE__, __LINE__, __FUNCTION__);
249
220 if (w < 1) w = 1; 250 if (w < 1) w = 1;
221 if (h < 1) h = 1; 251 if (h < 1) h = 1;
222 252
@@ -319,6 +349,8 @@ _ecore_evas_wl_common_callback_mouse_out_set(Ecore_Evas *ee, void (*func)(Ecore_
319void 349void
320_ecore_evas_wl_common_move(Ecore_Evas *ee, int x, int y) 350_ecore_evas_wl_common_move(Ecore_Evas *ee, int x, int y)
321{ 351{
352 LOGFN(__FILE__, __LINE__, __FUNCTION__);
353
322 if (!ee) return; 354 if (!ee) return;
323 355
324 ee->req.x = x; 356 ee->req.x = x;
@@ -340,6 +372,8 @@ _ecore_evas_wl_common_smart_add(Evas_Object *obj)
340 EE_Wl_Smart_Data *sd; 372 EE_Wl_Smart_Data *sd;
341 Evas *evas; 373 Evas *evas;
342 374
375 LOGFN(__FILE__, __LINE__, __FUNCTION__);
376
343 if (!(sd = calloc(1, sizeof(EE_Wl_Smart_Data)))) return; 377 if (!(sd = calloc(1, sizeof(EE_Wl_Smart_Data)))) return;
344 378
345 evas = evas_object_evas_get(obj); 379 evas = evas_object_evas_get(obj);
@@ -368,6 +402,8 @@ _ecore_evas_wl_common_smart_del(Evas_Object *obj)
368{ 402{
369 EE_Wl_Smart_Data *sd; 403 EE_Wl_Smart_Data *sd;
370 404
405 LOGFN(__FILE__, __LINE__, __FUNCTION__);
406
371 if (!(sd = evas_object_smart_data_get(obj))) return; 407 if (!(sd = evas_object_smart_data_get(obj))) return;
372 evas_object_del(sd->text); 408 evas_object_del(sd->text);
373 evas_object_del(sd->frame); 409 evas_object_del(sd->frame);
@@ -379,6 +415,8 @@ _ecore_evas_wl_common_smart_resize(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
379{ 415{
380 EE_Wl_Smart_Data *sd; 416 EE_Wl_Smart_Data *sd;
381 417
418 LOGFN(__FILE__, __LINE__, __FUNCTION__);
419
382 if (!(sd = evas_object_smart_data_get(obj))) return; 420 if (!(sd = evas_object_smart_data_get(obj))) return;
383 if ((sd->w == w) && (sd->h == h)) return; 421 if ((sd->w == w) && (sd->h == h)) return;
384 sd->w = w; 422 sd->w = w;
@@ -391,6 +429,8 @@ _ecore_evas_wl_common_smart_show(Evas_Object *obj)
391{ 429{
392 EE_Wl_Smart_Data *sd; 430 EE_Wl_Smart_Data *sd;
393 431
432 LOGFN(__FILE__, __LINE__, __FUNCTION__);
433
394 if (!(sd = evas_object_smart_data_get(obj))) return; 434 if (!(sd = evas_object_smart_data_get(obj))) return;
395 evas_object_show(sd->frame); 435 evas_object_show(sd->frame);
396 evas_object_show(sd->text); 436 evas_object_show(sd->text);
@@ -401,6 +441,8 @@ _ecore_evas_wl_common_smart_hide(Evas_Object *obj)
401{ 441{
402 EE_Wl_Smart_Data *sd; 442 EE_Wl_Smart_Data *sd;
403 443
444 LOGFN(__FILE__, __LINE__, __FUNCTION__);
445
404 if (!(sd = evas_object_smart_data_get(obj))) return; 446 if (!(sd = evas_object_smart_data_get(obj))) return;
405 evas_object_hide(sd->text); 447 evas_object_hide(sd->text);
406 evas_object_hide(sd->frame); 448 evas_object_hide(sd->frame);
@@ -409,6 +451,8 @@ _ecore_evas_wl_common_smart_hide(Evas_Object *obj)
409static void 451static void
410_ecore_evas_wl_common_smart_init(void) 452_ecore_evas_wl_common_smart_init(void)
411{ 453{
454 LOGFN(__FILE__, __LINE__, __FUNCTION__);
455
412 if (_ecore_evas_wl_common_smart) return; 456 if (_ecore_evas_wl_common_smart) return;
413 { 457 {
414 static const Evas_Smart_Class sc = 458 static const Evas_Smart_Class sc =
@@ -429,6 +473,8 @@ _ecore_evas_wl_common_smart_init(void)
429Evas_Object * 473Evas_Object *
430_ecore_evas_wl_common_frame_add(Evas *evas) 474_ecore_evas_wl_common_frame_add(Evas *evas)
431{ 475{
476 LOGFN(__FILE__, __LINE__, __FUNCTION__);
477
432 _ecore_evas_wl_common_smart_init(); 478 _ecore_evas_wl_common_smart_init();
433 return evas_object_smart_add(evas, _ecore_evas_wl_common_smart); 479 return evas_object_smart_add(evas, _ecore_evas_wl_common_smart);
434} 480}
@@ -436,6 +482,8 @@ _ecore_evas_wl_common_frame_add(Evas *evas)
436void 482void
437_ecore_evas_wl_common_raise(Ecore_Evas *ee) 483_ecore_evas_wl_common_raise(Ecore_Evas *ee)
438{ 484{
485 LOGFN(__FILE__, __LINE__, __FUNCTION__);
486
439 if ((!ee) || (!ee->visible)) return; 487 if ((!ee) || (!ee->visible)) return;
440 ecore_wl_window_raise(ee->engine.wl.win); 488 ecore_wl_window_raise(ee->engine.wl.win);
441} 489}
@@ -443,6 +491,8 @@ _ecore_evas_wl_common_raise(Ecore_Evas *ee)
443void 491void
444_ecore_evas_wl_common_title_set(Ecore_Evas *ee, const char *title) 492_ecore_evas_wl_common_title_set(Ecore_Evas *ee, const char *title)
445{ 493{
494 LOGFN(__FILE__, __LINE__, __FUNCTION__);
495
446 if (!ee) return; 496 if (!ee) return;
447 if (ee->prop.title) free(ee->prop.title); 497 if (ee->prop.title) free(ee->prop.title);
448 ee->prop.title = NULL; 498 ee->prop.title = NULL;
@@ -463,6 +513,8 @@ _ecore_evas_wl_common_title_set(Ecore_Evas *ee, const char *title)
463void 513void
464_ecore_evas_wl_common_name_class_set(Ecore_Evas *ee, const char *n, const char *c) 514_ecore_evas_wl_common_name_class_set(Ecore_Evas *ee, const char *n, const char *c)
465{ 515{
516 LOGFN(__FILE__, __LINE__, __FUNCTION__);
517
466 if (!ee) return; 518 if (!ee) return;
467 if (ee->prop.name) free(ee->prop.name); 519 if (ee->prop.name) free(ee->prop.name);
468 if (ee->prop.clas) free(ee->prop.clas); 520 if (ee->prop.clas) free(ee->prop.clas);
@@ -479,6 +531,8 @@ _ecore_evas_wl_common_name_class_set(Ecore_Evas *ee, const char *n, const char *
479void 531void
480_ecore_evas_wl_common_size_min_set(Ecore_Evas *ee, int w, int h) 532_ecore_evas_wl_common_size_min_set(Ecore_Evas *ee, int w, int h)
481{ 533{
534 LOGFN(__FILE__, __LINE__, __FUNCTION__);
535
482 if (!ee) return; 536 if (!ee) return;
483 if (w < 0) w = 0; 537 if (w < 0) w = 0;
484 if (h < 0) h = 0; 538 if (h < 0) h = 0;
@@ -490,6 +544,8 @@ _ecore_evas_wl_common_size_min_set(Ecore_Evas *ee, int w, int h)
490void 544void
491_ecore_evas_wl_common_size_max_set(Ecore_Evas *ee, int w, int h) 545_ecore_evas_wl_common_size_max_set(Ecore_Evas *ee, int w, int h)
492{ 546{
547 LOGFN(__FILE__, __LINE__, __FUNCTION__);
548
493 if (!ee) return; 549 if (!ee) return;
494 if (w < 0) w = 0; 550 if (w < 0) w = 0;
495 if (h < 0) h = 0; 551 if (h < 0) h = 0;
@@ -501,6 +557,8 @@ _ecore_evas_wl_common_size_max_set(Ecore_Evas *ee, int w, int h)
501void 557void
502_ecore_evas_wl_common_size_base_set(Ecore_Evas *ee, int w, int h) 558_ecore_evas_wl_common_size_base_set(Ecore_Evas *ee, int w, int h)
503{ 559{
560 LOGFN(__FILE__, __LINE__, __FUNCTION__);
561
504 if (!ee) return; 562 if (!ee) return;
505 if (w < 0) w = 0; 563 if (w < 0) w = 0;
506 if (h < 0) h = 0; 564 if (h < 0) h = 0;
@@ -512,6 +570,8 @@ _ecore_evas_wl_common_size_base_set(Ecore_Evas *ee, int w, int h)
512void 570void
513_ecore_evas_wl_common_size_step_set(Ecore_Evas *ee, int w, int h) 571_ecore_evas_wl_common_size_step_set(Ecore_Evas *ee, int w, int h)
514{ 572{
573 LOGFN(__FILE__, __LINE__, __FUNCTION__);
574
515 if (!ee) return; 575 if (!ee) return;
516 if (w < 0) w = 0; 576 if (w < 0) w = 0;
517 if (h < 0) h = 0; 577 if (h < 0) h = 0;
@@ -523,6 +583,8 @@ _ecore_evas_wl_common_size_step_set(Ecore_Evas *ee, int w, int h)
523void 583void
524_ecore_evas_wl_common_layer_set(Ecore_Evas *ee, int layer) 584_ecore_evas_wl_common_layer_set(Ecore_Evas *ee, int layer)
525{ 585{
586 LOGFN(__FILE__, __LINE__, __FUNCTION__);
587
526 if (!ee) return; 588 if (!ee) return;
527 if (ee->prop.layer == layer) return; 589 if (ee->prop.layer == layer) return;
528 if (layer < 1) layer = 1; 590 if (layer < 1) layer = 1;
@@ -533,6 +595,8 @@ _ecore_evas_wl_common_layer_set(Ecore_Evas *ee, int layer)
533void 595void
534_ecore_evas_wl_common_iconified_set(Ecore_Evas *ee, int iconify) 596_ecore_evas_wl_common_iconified_set(Ecore_Evas *ee, int iconify)
535{ 597{
598 LOGFN(__FILE__, __LINE__, __FUNCTION__);
599
536 if (!ee) return; 600 if (!ee) return;
537 if (ee->prop.iconified == iconify) return; 601 if (ee->prop.iconified == iconify) return;
538 ee->prop.iconified = iconify; 602 ee->prop.iconified = iconify;
@@ -542,6 +606,8 @@ _ecore_evas_wl_common_iconified_set(Ecore_Evas *ee, int iconify)
542void 606void
543_ecore_evas_wl_common_maximized_set(Ecore_Evas *ee, int max) 607_ecore_evas_wl_common_maximized_set(Ecore_Evas *ee, int max)
544{ 608{
609 LOGFN(__FILE__, __LINE__, __FUNCTION__);
610
545 if (!ee) return; 611 if (!ee) return;
546 if (ee->prop.maximized == max) return; 612 if (ee->prop.maximized == max) return;
547 ee->prop.maximized = max; 613 ee->prop.maximized = max;
@@ -551,6 +617,8 @@ _ecore_evas_wl_common_maximized_set(Ecore_Evas *ee, int max)
551void 617void
552_ecore_evas_wl_common_fullscreen_set(Ecore_Evas *ee, int full) 618_ecore_evas_wl_common_fullscreen_set(Ecore_Evas *ee, int full)
553{ 619{
620 LOGFN(__FILE__, __LINE__, __FUNCTION__);
621
554 if (!ee) return; 622 if (!ee) return;
555 if (ee->prop.fullscreen == full) return; 623 if (ee->prop.fullscreen == full) return;
556 ee->prop.fullscreen = full; 624 ee->prop.fullscreen = full;
@@ -560,6 +628,8 @@ _ecore_evas_wl_common_fullscreen_set(Ecore_Evas *ee, int full)
560void 628void
561_ecore_evas_wl_common_ignore_events_set(Ecore_Evas *ee, int ignore) 629_ecore_evas_wl_common_ignore_events_set(Ecore_Evas *ee, int ignore)
562{ 630{
631 LOGFN(__FILE__, __LINE__, __FUNCTION__);
632
563 if (!ee) return; 633 if (!ee) return;
564 ee->ignore_events = ignore; 634 ee->ignore_events = ignore;
565 /* NB: Hmmm, may need to pass this to ecore_wl_window in the future */ 635 /* NB: Hmmm, may need to pass this to ecore_wl_window in the future */
@@ -572,6 +642,8 @@ _ecore_evas_wl_common_pre_render(Ecore_Evas *ee)
572 Eina_List *ll = NULL; 642 Eina_List *ll = NULL;
573 Ecore_Evas *ee2 = NULL; 643 Ecore_Evas *ee2 = NULL;
574 644
645 LOGFN(__FILE__, __LINE__, __FUNCTION__);
646
575 if (ee->func.fn_pre_render) ee->func.fn_pre_render(ee); 647 if (ee->func.fn_pre_render) ee->func.fn_pre_render(ee);
576 648
577 EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2) 649 EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2)
@@ -591,6 +663,8 @@ _ecore_evas_wl_common_render_updates(Ecore_Evas *ee)
591 int rend = 0; 663 int rend = 0;
592 Eina_List *updates = NULL; 664 Eina_List *updates = NULL;
593 665
666 LOGFN(__FILE__, __LINE__, __FUNCTION__);
667
594 if ((updates = evas_render_updates(ee->evas))) 668 if ((updates = evas_render_updates(ee->evas)))
595 { 669 {
596 Eina_List *l = NULL; 670 Eina_List *l = NULL;
@@ -612,6 +686,8 @@ _ecore_evas_wl_common_render_updates(Ecore_Evas *ee)
612void 686void
613_ecore_evas_wl_common_post_render(Ecore_Evas *ee) 687_ecore_evas_wl_common_post_render(Ecore_Evas *ee)
614{ 688{
689 LOGFN(__FILE__, __LINE__, __FUNCTION__);
690
615 _ecore_evas_idle_timeout_update(ee); 691 _ecore_evas_idle_timeout_update(ee);
616 if (ee->func.fn_post_render) ee->func.fn_post_render(ee); 692 if (ee->func.fn_post_render) ee->func.fn_post_render(ee);
617} 693}
@@ -621,6 +697,8 @@ _ecore_evas_wl_common_render(Ecore_Evas *ee)
621{ 697{
622 int rend = 0; 698 int rend = 0;
623 699
700 LOGFN(__FILE__, __LINE__, __FUNCTION__);
701
624 if (!ee) return 0; 702 if (!ee) return 0;
625 if (!ee->visible) 703 if (!ee->visible)
626 { 704 {
@@ -638,6 +716,8 @@ _ecore_evas_wl_common_render(Ecore_Evas *ee)
638void 716void
639_ecore_evas_wl_common_screen_geometry_get(const Ecore_Evas *ee __UNUSED__, int *x, int *y, int *w, int *h) 717_ecore_evas_wl_common_screen_geometry_get(const Ecore_Evas *ee __UNUSED__, int *x, int *y, int *w, int *h)
640{ 718{
719 LOGFN(__FILE__, __LINE__, __FUNCTION__);
720
641 if (x) *x = 0; 721 if (x) *x = 0;
642 if (y) *y = 0; 722 if (y) *y = 0;
643 ecore_wl_screen_size_get(w, h); 723 ecore_wl_screen_size_get(w, h);
@@ -648,6 +728,8 @@ _ecore_evas_wl_common_screen_dpi_get(const Ecore_Evas *ee __UNUSED__, int *xdpi,
648{ 728{
649 int dpi = 0; 729 int dpi = 0;
650 730
731 LOGFN(__FILE__, __LINE__, __FUNCTION__);
732
651 if (xdpi) *xdpi = 0; 733 if (xdpi) *xdpi = 0;
652 if (ydpi) *ydpi = 0; 734 if (ydpi) *ydpi = 0;
653 /* FIXME: Ideally this needs to get the DPI from a specific screen */ 735 /* FIXME: Ideally this needs to get the DPI from a specific screen */