mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Merge pull request #406 from Pan7/fixbmp
Fix gcc warning pixbytes may be used uninitialized in this function
This commit is contained in:
commit
71c9d7d360
1 changed files with 3 additions and 0 deletions
|
@ -161,6 +161,7 @@ void LoadBMP( char *filename, bitmap_t *bit ){
|
|||
{
|
||||
Error( "Only 8BPP and 24BPP supported" );
|
||||
//Error("BPP %d not supported.", info.biBitCount);
|
||||
return;
|
||||
}
|
||||
|
||||
// if this is an eight bit image load palette
|
||||
|
@ -268,6 +269,7 @@ void WriteBMP( char *filename, bitmap_t *bit ){
|
|||
{
|
||||
Error( "Only 8BPP and 24BPP supported" );
|
||||
//Error("BPP %d not supported.", bit->bpp);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
@ -346,6 +348,7 @@ void NewBMP( int width, int height, int bpp, bitmap_t *bit ){
|
|||
else
|
||||
{
|
||||
Error( "NewBMP: 8 or 24 bit only." );
|
||||
return;
|
||||
}
|
||||
|
||||
bit->bpp = bpp;
|
||||
|
|
Loading…
Reference in a new issue