Commit 48ed515c authored by Guido Gunther's avatar Guido Gunther
Browse files

monitor: Drop integer scale


Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent c59d296b
......@@ -89,8 +89,8 @@ output_handle_scale (void *data,
{
PhoshMonitor *self = PHOSH_MONITOR (data);
/* nothing to do */
self->wl_output_done = FALSE;
self->scale = scale;
}
......@@ -404,7 +404,6 @@ phosh_monitor_class_init (PhoshMonitorClass *klass)
static void
phosh_monitor_init (PhoshMonitor *self)
{
self->scale = 1.0;
self->modes = g_array_new (FALSE, FALSE, sizeof(PhoshMonitorMode));
self->power_mode = PHOSH_MONITOR_POWER_SAVE_MODE_OFF;
}
......
......@@ -117,7 +117,7 @@ struct _PhoshMonitor {
int x, y, width, height;
int subpixel;
gint32 transform, scale;
gint32 transform;
struct {
gint32 x, y, width, height;
......
......@@ -270,8 +270,8 @@ add_activity (PhoshOverview *self, PhoshToplevel *toplevel)
activity = phosh_activity_new (app_id, title);
scale = phosh_monitor_get_fractional_scale (monitor);
g_object_set (activity,
"win-width", monitor->width / scale,
"win-height", monitor->height / scale,
"win-width", (int)(monitor->width / scale),
"win-height", (int)(monitor->height / scale),
"maximized", phosh_toplevel_is_maximized (toplevel),
NULL);
g_object_set_data (G_OBJECT (activity), "toplevel", toplevel);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment