summaryrefslogtreecommitdiffstats
path: root/gtk/src/preview.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-04-13 21:26:18 +0000
committerjstebbins <[email protected]>2009-04-13 21:26:18 +0000
commit6a59b3ba40c2d2bbe977684d31b345bdd3a5ef93 (patch)
treed4dbdeea7ca7028c5759c749a6e650551742e1c8 /gtk/src/preview.h
parente9d4524d3c993402768a3e29712203f915e7f196 (diff)
LinGui: first cut at anamorphic picture settings enhancements
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2325 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/preview.h')
-rw-r--r--gtk/src/preview.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/src/preview.h b/gtk/src/preview.h
index a650a245c..b30d1a909 100644
--- a/gtk/src/preview.h
+++ b/gtk/src/preview.h
@@ -16,7 +16,7 @@
#if !defined(_GHB_PREVIEW_H_)
#define _GHB_PREVIEW_H_
-#define MOD_ROUND(v,m) (m * ((v + (m>>1) - 1) / m))
+#define MOD_ROUND(v,m) ((m==1)?v:(m * ((v + (m>>1) - 1) / m)))
#define MOD_DOWN(v,m) (m * (v / m))
#define MOD_UP(v,m) (m * ((v + m - 1) / m))