OSDN Git Service

[Refactor] #37353 コメント整理 / Refactor comments.
[hengband/hengband.git] / src / readdib.c
index 559e297..0e0e823 100644 (file)
 #endif
 
 /*
- * Make sure "huge" is legal XXX XXX XXX
+ * Make sure "huge" is legal 
  */
 #undef huge
 #ifdef WIN32
-# define huge /* oops */
+#define huge
 #endif
 
 
@@ -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)