diff options
author | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-09-11 19:26:27 +0000 |
---|---|---|
committer | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-09-11 19:26:27 +0000 |
commit | 7487ea601384016ed6185e9083ea3e0d1b71fa46 (patch) | |
tree | 96ae8bc30fb07f7b06372c2780eeb2671af24e02 /recordmydesktop/src/setbrwindow.c | |
parent | f635b1be3ea9c3a3892936e95e9306b121d1bb5e (diff) |
Started working towards a more clean include hierarchy and
distinguishable program modules. First step: move stuff from global
headers that is only used in one source file to those source files.
include/rmdfunc.h
include/rmdmacro.h
include/rmdtypes.h: Move stuff from here
src/rmd_jack.c
src/get_frame.c
src/rmd_cache.c
src/load_cache.c
src/rectinsert.c
src/cache_frame.c
src/poll_events.c
src/setbrwindow.c
src/recordmydesktop.c: To here.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@508 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/setbrwindow.c')
-rw-r--r-- | recordmydesktop/src/setbrwindow.c | 15 |
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 |