Skip to content

Commit

Permalink
[bmp] fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
umjammer committed Aug 8, 2022
1 parent 919afbf commit 977c9af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/vavi/awt/image/bmp/WindowsBitmap.java
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,15 @@ static WindowsBitmapHeader readFrom(LittleEndianDataInputStream lin) throws IOEx
case 2:
//Debug.println("use default bw");
bh.palette = systemBWIndexColorModel;
break;
case 16:
//Debug.println("use default 16 color");
bh.palette = system16IndexColorModel;
break;
case 256:
//Debug.println("use system 256 color ");
bh.palette = system256IndexColorModel;
break;
default:
Debug.println("unknown color size: " + bh.usedColor);
}
Expand Down

0 comments on commit 977c9af

Please sign in to comment.