Mercurial > mplayer.hg
view libvo/gl_common.c @ 13772:2f12bac746ab
1.147: skipped, typo was fixed earlier
1.148: printf --> mp_msg (divx4_vbr.c, fifo.c, m_config.c)
1.149: skipped, typo was fixed earlier
1.150: no changes done (trailing dots already existed.)
File is in sync now.
author | kraymer |
---|---|
date | Tue, 26 Oct 2004 16:10:16 +0000 |
parents | 799f81d3cb19 |
children | 3f28d2a56758 |
line wrap: on
line source
#include "gl_common.h" /** * \brief adjusts the GL_UNPACK_ALGNMENT to fit the stride. * \param stride number of bytes per line for which alignment should fit. */ void glAdjustAlignment(int stride) { GLint gl_alignment; if (stride % 8 == 0) gl_alignment=8; else if (stride % 4 == 0) gl_alignment=4; else if (stride % 2 == 0) gl_alignment=2; else gl_alignment=1; glPixelStorei (GL_UNPACK_ALIGNMENT, gl_alignment); }