diff options
author | Pavel Grunt <pgrunt@redhat.com> | 2015-03-30 22:17:35 +0200 |
---|---|---|
committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2015-04-02 09:21:31 +0200 |
commit | 2e5ae1550fce6ef064b390160a5a1516982ff6aa (patch) | |
tree | a3f9863967a803b3b336690d70b3ca178ebed213 /src/virt-viewer-app.c | |
parent | 30b7e299b09f78ace49f8802a16020b6682ecf48 (diff) |
Use ZOOM constants instead of numbers
Diffstat (limited to 'src/virt-viewer-app.c')
-rw-r--r-- | src/virt-viewer-app.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c index e6a2ec0..aef0778 100644 --- a/src/virt-viewer-app.c +++ b/src/virt-viewer-app.c @@ -1723,7 +1723,7 @@ gboolean virt_viewer_app_start(VirtViewerApp *self, GError **error) return self->priv->started; } -static int opt_zoom = 100; +static int opt_zoom = NORMAL_ZOOM_LEVEL; static gchar *opt_hotkeys = NULL; static gboolean opt_verbose = FALSE; static gboolean opt_debug = FALSE; @@ -1764,7 +1764,7 @@ virt_viewer_app_init(VirtViewerApp *self) if (opt_zoom < MIN_ZOOM_LEVEL || opt_zoom > MAX_ZOOM_LEVEL) { g_printerr(_("Zoom level must be within %d-%d\n"), MIN_ZOOM_LEVEL, MAX_ZOOM_LEVEL); - opt_zoom = 100; + opt_zoom = NORMAL_ZOOM_LEVEL; } self->priv->initial_display_map = virt_viewer_app_get_monitor_mapping_for_section(self, "fallback"); |