draw highlight on half pixels to decrease impression of 1px rounded corners

This commit is contained in:
Tom Beckmann 2014-07-17 01:31:35 +02:00
parent 6697265dd9
commit 7e07b4dc7e

View File

@ -48,7 +48,7 @@ namespace Gala
Cogl.Path.stroke ();
Cogl.set_source_color4ub (255, 255, 255, 25);
Cogl.Path.rectangle (1, 1, width - 2, height - 2);
Cogl.Path.rectangle (0.5f, 0.5f, width - 1, height - 1);
Cogl.Path.stroke ();
}
}