Commit 4acc6a74 authored by devill.tamachan's avatar devill.tamachan

[バグ修正] ポータブル版設定ファイルのRGB値のアルファ値の読み込みのバグ

parent 7ca0f475
......@@ -131,15 +131,16 @@ case TYPE_PageMargin: options.rMargin.left = pVal[0]; options.rMargin.top = pVal
COLORREF ReadRGB(uchar *token)
{
COLORREF c=0xFF000000;
_snscanf((const char *)token, 6, "%06x", &c);
COLORREF c=0;
_snscanf((const char *)token, 6, "%x", &c);
c |= 0xFF000000;
return c;
}
COLORREF ReadRGBA(uchar *token)
{
COLORREF c=0;
_snscanf((const char *)token, 8, "%08x", &c);
_snscanf((const char *)token, 8, "%x", &c);
return c;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment