diff --git a/Compatibility.md b/Compatibility.md index 9d1323be..bb7e650e 100644 --- a/Compatibility.md +++ b/Compatibility.md @@ -14,6 +14,7 @@ YEGE 以 [misakamm 的 xege](http://github.com/misakamm/xege) 为基础修改, * 参见 [wysaid/xege pull request 5](https://github.com/wysaid/xege/pull/5) 。 * 参见 [wysaid/xege pull request 9](https://github.com/wysaid/xege/pull/9) 。 * 颜色转换函数添加 `ynothrow` 。 +* 修复函数 `RGBTOBGR` 的参数类型([自从 19.01](https://github.com/FrankHB/YEGE/commit/47f33c7b096c9c99b97faac6334217a3a4f33b1e) )。 ## 19.01 diff --git a/EGE/include/ege/colorbase.h b/EGE/include/ege/colorbase.h index af1f39b7..f12fb24b 100644 --- a/EGE/include/ege/colorbase.h +++ b/EGE/include/ege/colorbase.h @@ -30,7 +30,7 @@ using ConstBitmapPtr = const color_int_t*; #endif yconstfn color_int_t -RGBTOBGR(MonoType color) ynothrow +RGBTOBGR(color_int_t color) ynothrow { return ((color & 0xFF) << 16) | ((color & 0xFF0000) >> 16) | (color & 0xFF00FF00);