summaryrefslogtreecommitdiff
path: root/clutter/clutter-stage-private.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-08-14 11:19:22 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2013-09-19 22:51:52 +0100
commit0d0cb13c8d54499d6a4a74e7cfe0db3190d04501 (patch)
tree140cca431c2292fc91b3e15f4448eb5d33cd45c1 /clutter/clutter-stage-private.h
parentb9072a5e211cfb14c9f8a2d9affe0e40dd91dbb9 (diff)
downloadclutter-0d0cb13c8d54499d6a4a74e7cfe0db3190d04501.tar.gz
stage: Adjust drawing to include the window scaling factor
In order to transparently support high DPI density displays, we must maintain all coordinates and sizes exactly as they are now — but draw them on a surface that is scaled up by a certain factor. In order to do that we have to change the viewport and initial transformation matrix so that they are scaled up by the same factor. https://bugzilla.gnome.org/show_bug.cgi?id=705915
Diffstat (limited to 'clutter/clutter-stage-private.h')
-rw-r--r--clutter/clutter-stage-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clutter/clutter-stage-private.h b/clutter/clutter-stage-private.h
index 9ccba3f5b..890fcdccc 100644
--- a/clutter/clutter-stage-private.h
+++ b/clutter/clutter-stage-private.h
@@ -119,6 +119,9 @@ gboolean _clutter_stage_update_state (ClutterStage *stag
ClutterStageState unset_state,
ClutterStageState set_state);
+void _clutter_stage_set_scale_factor (ClutterStage *stage,
+ int factor);
+
G_END_DECLS
#endif /* __CLUTTER_STAGE_PRIVATE_H__ */