diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2013-08-14 11:19:22 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2013-09-19 22:51:52 +0100 |
commit | 0d0cb13c8d54499d6a4a74e7cfe0db3190d04501 (patch) | |
tree | 140cca431c2292fc91b3e15f4448eb5d33cd45c1 /clutter/clutter-stage-private.h | |
parent | b9072a5e211cfb14c9f8a2d9affe0e40dd91dbb9 (diff) | |
download | clutter-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.h | 3 |
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__ */ |