Commit aa47dd22 authored by Bogdan Szczurek's avatar Bogdan Szczurek Committed by Martin Nordholts

app: Support 'M' for 'megapixels' in image title format string

parent 2ced18cc
......@@ -322,6 +322,15 @@ gimp_display_shell_format_title (GimpDisplayShell *shell,
case 'M': /* image size in megapixels */
i += print (title, title_len, i, "%.1f",
gimp_image_get_width (image) *
gimp_image_get_height (image) /
case 'l': /* number of layers */
i += print (title, title_len, i, "%d",
gimp_image_get_n_layers (image));
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