📄 _csl_reszsetinsize.c
字号:
/** @file _csl_reszSetInSize.c
*
* @brief File for functional layer of CSL API @a CSL_reszSetInSize()
*
* Description
* - The @a CSL_reszSetInSize() function definition & it's associated
* functions
*
* @date 10th May, 2005
* @author Jesse Villarreal.
*/
#include <csl_resz_aux.h>
#pragma CODE_SECTION (CSL_reszSetInSize, ".text:csl_section:resz");
/** @brief Sets the input width and height
*
*/
CSL_Status CSL_reszSetInSize(
/** Pointer to the object that holds reference to the
* instance of RESZ requested after the call
*/
CSL_ReszHandle hResz,
/** Pointer to structure holding the data
*/
CSL_ReszSize *data
){
CSL_ReszRegsOvly reszRegs = hResz->regs;
if(data == NULL) return (CSL_ESYS_INVPARAMS);
reszRegs->IN_SIZE = CSL_FMK(RESZ_IN_SIZE_VERT,data->height) |
CSL_FMK(RESZ_IN_SIZE_HORZ,data->width);
return (CSL_SOK);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -