aboutsummaryrefslogtreecommitdiff
path: root/viewport.c
diff options
context:
space:
mode:
Diffstat (limited to 'viewport.c')
-rw-r--r--viewport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/viewport.c b/viewport.c
index 8717d80..4ba207f 100644
--- a/viewport.c
+++ b/viewport.c
@@ -98,10 +98,10 @@ void imv_viewport_scale_to_window(struct imv_viewport *view, const struct imv_im
double image_aspect = (double)img->width / (double)img->height;
if(window_aspect > image_aspect) {
- //Image will become too tall before it becomes too wide
+ /* Image will become too tall before it becomes too wide */
view->scale = (double)wh / (double)img->height;
} else {
- //Image will become too wide before it becomes too tall
+ /* Image will become too wide before it becomes too tall */
view->scale = (double)ww / (double)img->width;
}