comparison os2/dw.c @ 1777:0cdfb0c3f4ca

Fix loading bitmap buttons from data via GBM on OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 16 Jul 2012 23:11:01 +0000
parents d81bebc5c8cc
children d1f65efea6b1
comparison
equal deleted inserted replaced
1776:c02f23d24507 1777:0cdfb0c3f4ca
6859 fp = fopen( file, "wb" ); 6859 fp = fopen( file, "wb" );
6860 if ( fp != NULL ) 6860 if ( fp != NULL )
6861 { 6861 {
6862 fwrite( data, 1, len, fp ); 6862 fwrite( data, 1, len, fp );
6863 fclose( fp ); 6863 fclose( fp );
6864 if(!_load_bitmap_file( file, tmp, &pixmap->hbm, &pixmap->hdc, &pixmap->hps, &pixmap->width, &pixmap->height, &pixmap->depth)); 6864 if(!_load_bitmap_file( file, tmp, &pixmap->hbm, &pixmap->hdc, &pixmap->hps, &pixmap->width, &pixmap->height, &pixmap->depth))
6865 { 6865 {
6866 icon = WinLoadFileIcon((PSZ)file, FALSE); 6866 icon = WinLoadFileIcon((PSZ)file, FALSE);
6867 } 6867 }
6868 } 6868 }
6869 else 6869 else