diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:19:34 +0200 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:19:34 +0200 |
| commit | e7d20cf352688bf717a01f4e6d9e6f497c2bea4c (patch) | |
| tree | cfd2ef9b569f49af985a6f1ec44f2614f63c8e78 /app/wlib/mswlib/mswbitmap.c | |
| parent | a14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 (diff) | |
New upstream version 5.3.1Beta2upstream/5.3.1Beta2
Diffstat (limited to 'app/wlib/mswlib/mswbitmap.c')
| -rw-r--r-- | app/wlib/mswlib/mswbitmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/wlib/mswlib/mswbitmap.c b/app/wlib/mswlib/mswbitmap.c index 9069c35..6b36231 100644 --- a/app/wlib/mswlib/mswbitmap.c +++ b/app/wlib/mswlib/mswbitmap.c @@ -332,7 +332,7 @@ wIcon_p wIconCreateBitMap( wWinPix_t w, wWinPix_t h, const char * bits, * \return pointer to icon, call free() if not needed anymore. */ -wIcon_p wIconCreatePixMap( char *pm[]) +wIcon_p wIconCreatePixMap( wIconBitMap_t pm ) { wIcon_p ip; int col, r, g, b; @@ -356,7 +356,7 @@ wIcon_p wIconCreatePixMap( char *pm[]) ip->type = mswIcon_pixmap; /* extract values */ - cp = pm[0]; + cp = (char*)(pm[0]); width = (int)strtol(cp, &cq, 10 ); /* width of image */ height = (int)strtol(cq, &cq, 10 ); /* height of image */ col = (int)strtol(cq, &cq, 10 ); /* number of colors used */ @@ -431,7 +431,7 @@ wIcon_p wIconCreatePixMap( char *pm[]) cq = ip->pixels + lineLength * i; /* get the next row */ - cp = pm[ ip->h - i + ip->colorcnt ]; + cp = (char*)(pm[ ip->h - i + ip->colorcnt ]); /* for all pixels in row */ for( j = 0; j < ip->w; j++ ) { /* get the pixel info */ |
