app: add (disabled) support for rendering the image at high resolution

for what Apple calls "Retina". Disabled because the GDK API to figure
the scale factor doesn't exist yet.
This commit is contained in:
Michael Natterer
2013-01-18 16:36:22 +01:00
parent 0357f83658
commit 2491a3a088
3 changed files with 37 additions and 9 deletions

View File

@ -19,9 +19,17 @@
#define __GIMP_DISPLAY_SHELL_RENDER_H__
/* #define GIMP_DISPLAY_RENDER_ENABLE_SCALING 1 */
#define GIMP_DISPLAY_RENDER_BUF_WIDTH 256
#define GIMP_DISPLAY_RENDER_BUF_HEIGHT 256
#ifdef GIMP_DISPLAY_RENDER_ENABLE_SCALING
#define GIMP_DISPLAY_RENDER_MAX_SCALE 2.0
#else
#define GIMP_DISPLAY_RENDER_MAX_SCALE 1.0
#endif
void gimp_display_shell_render (GimpDisplayShell *shell,
cairo_t *cr,