summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/setbrwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'recordmydesktop/src/setbrwindow.c')
-rw-r--r--recordmydesktop/src/setbrwindow.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/recordmydesktop/src/setbrwindow.c b/recordmydesktop/src/setbrwindow.c
index 8c8b973..94c1fa0 100644
--- a/recordmydesktop/src/setbrwindow.c
+++ b/recordmydesktop/src/setbrwindow.c
@@ -26,7 +26,20 @@
#include <recordmydesktop.h>
-void SizePack2_8_16(int *start,int *size,int limit){
+
+/**
+*Align the recording window to a divisible by 2 pixel start and
+*and a size divisible by 16.
+*
+* \param start x or y of the recording window
+*
+* \param size width or height of the recording window
+*
+* \param limit width or height of the Display
+*
+* \note This is called separately for width and height.
+*/
+static void SizePack2_8_16(int *start, int *size, int limit) {
int octoffset,hexoffset;
//align in two
© All Rights Reserved