mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 10:38:47 +08:00
improve image_resize fix issue #835
This commit is contained in:
parent
dfc048b910
commit
3ddddd9b62
@ -10,6 +10,7 @@
|
||||
* 完善编译脚本(感谢朝泽提供补丁)
|
||||
* 导出assest\_manager\_build\_assest\_filename函数(感谢福明提供补丁)
|
||||
* 去除font\_loader\_ft中的FT\_OUTLINE\_HIGH\_PRECISION标记(感谢雨欣提供补丁)
|
||||
* 修复image_resize工具可能溢出的问题(感谢[szsam](https://github.com/szsam)提供补丁)
|
||||
|
||||
2023/05/23
|
||||
* 对话框中的ok/cancel使用不同的风格。
|
||||
|
@ -79,6 +79,11 @@ int main(int argc, char* argv[]) {
|
||||
ow = atoi(argv[3]);
|
||||
oh = atoi(argv[4]);
|
||||
|
||||
if (ow == 0 || ow > 20000 || oh == 0 || oh > 20000) {
|
||||
printf("invalid width[1-20000] or height[1-20000]\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
image_resize(ifilename, ofilename, ow, oh);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user