Skip to content
Snippets Groups Projects
Commit 496bfed4 authored by Mirar (Pontus Hagland)'s avatar Mirar (Pontus Hagland)
Browse files

no padding (it didn't work very perfect... *grin*)

Rev: src/modules/Image/encodings/pnm.c:1.7
Rev: src/modules/Image/image.h:1.17
parent 6ee480db
Branches
Tags
No related merge requests found
/* $Id: pnm.c,v 1.6 1998/01/06 21:39:30 mirar Exp $ */ /* $Id: pnm.c,v 1.7 1998/01/08 20:51:39 mirar Exp $ */
/* /*
**! module Image **! module Image
**! note **! note
**! $Id: pnm.c,v 1.6 1998/01/06 21:39:30 mirar Exp $ **! $Id: pnm.c,v 1.7 1998/01/08 20:51:39 mirar Exp $
**! submodule PNM **! submodule PNM
**! **!
**! This submodule keeps the PNM encode/decode capabilities **! This submodule keeps the PNM encode/decode capabilities
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
#include "stralloc.h" #include "stralloc.h"
#include "global.h" #include "global.h"
RCSID("$Id: pnm.c,v 1.6 1998/01/06 21:39:30 mirar Exp $"); RCSID("$Id: pnm.c,v 1.7 1998/01/08 20:51:39 mirar Exp $");
#include "pike_macros.h" #include "pike_macros.h"
#include "object.h" #include "object.h"
#include "constants.h" #include "constants.h"
...@@ -278,7 +278,7 @@ void img_pnm_encode_P6(INT32 args) ...@@ -278,7 +278,7 @@ void img_pnm_encode_P6(INT32 args)
unsigned char *c; unsigned char *c;
int n=img->xsize*img->ysize; int n=img->xsize*img->ysize;
rgb_group *s=img->img; rgb_group *s=img->img;
c=(unsigned char*)(b=begin_shared_string(n*3)); c=(unsigned char*)((b=begin_shared_string(n*3))->str);
while (n--) while (n--)
{ {
*(c++)=s->r; *(c++)=s->r;
......
/* /*
**! module Image **! module Image
**! note **! note
**! $Id: image.h,v 1.16 1998/01/06 21:39:28 mirar Exp $ **! $Id: image.h,v 1.17 1998/01/08 20:51:38 mirar Exp $
*/ */
#ifdef PIKE_IMAGE_IMAGE_H #ifdef PIKE_IMAGE_IMAGE_H
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
typedef struct typedef struct
{ {
COLORTYPE r,g,b; COLORTYPE r,g,b;
COLORTYPE __padding_dont_use__; /* COLORTYPE __padding_dont_use__;*/
} rgb_group; } rgb_group;
typedef struct typedef struct
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment