OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Refactor] #37353 ソースファイル改名。
[hengband/hengband.git]
/
src
/
readdib.c
diff --git
a/src/readdib.c
b/src/readdib.c
index
aacf4f1
..
b3a493d
100644
(file)
--- a/
src/readdib.c
+++ b/
src/readdib.c
@@
-273,7
+273,8
@@
BOOL ReadDIB(HWND hWnd, LPSTR lpFileName, DIBINIT *pInfo)
goto ErrExit;
}
- if (!(nNumColors == (WORD)lpbi->biClrUsed))
+ nNumColors = (WORD)lpbi->biClrUsed;
+ if (!nNumColors)
{
/* no color table for 24-bit, default size otherwise */
if (lpbi->biBitCount != 24)