提交 8dbf28dc 编写于 作者: 指向BIOS的野指针's avatar 指向BIOS的野指针

delete redundant function

上级 21564305
......@@ -24,6 +24,13 @@ namespace bwl
*/
_Float64x getFPS();
/**
* @brief 设置帧率
*
* @param fps
*/
void setFPS(_Float64x fps);
/**
* @brief 获取显示器大小
*
......@@ -32,14 +39,6 @@ namespace bwl
*/
void getMoniSize(uint64_t *width, uint64_t *height);
/**
* @brief 设置显示器大小
*
* @param width
* @param height
*/
void setMoniSize(uint64_t width, uint64_t height);
#define interval(fps) (1000 / fps) //帧率转间隔
};
};
......
......@@ -61,16 +61,15 @@ namespace bwl
return syscfg.fps;
}
void getMoniSize(uint64_t *width, uint64_t *height)
void setFPS(_Float64x fps)
{
*width = syscfg.size[0];
*height = syscfg.size[1];
syscfg.fps = fps;
}
void setMoniSize(uint64_t width, uint64_t height)
void getMoniSize(uint64_t *width, uint64_t *height)
{
syscfg.size[0] = width;
syscfg.size[1] = height;
*width = syscfg.size[0];
*height = syscfg.size[1];
}
};
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册