delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/03/07:30:25

From: "Xee'Gh" <pekkaka AT dlc DOT fi>
Newsgroups: comp.os.msdos.djgpp
Subject: __atribute__((packed))..
Date: 3 Aug 1998 10:45:05 GMT
Organization: Scifi Communications International, http://www.sci.fi/, helpdesk AT sci DOT fi, +358 3 2899111
Lines: 30
Message-ID: <01bdbe9f$fc61fe80$LocalHost@default>
NNTP-Posting-Host: ccclxxxii.kdyn.saunalahti.fi
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi!.
---
um..i just would like to know how does that affect my programs reading ?.
now this is funny :), because about 5 months ago i tryed to make my own
pcxfile reader
what prints all kind of data about it, like BPP etc..but it simply
dipsplayed lots of silly numbers.But now i read the faq and i used the
__attribute_((packed)) in my typedef structure and it works!, no more silly
numbers, i tested it with Paint shop pro and one of the pictures, i
resampled the pictures size from 320 to 640 and changed bpp to 24.Then i
used the program to display data about this picture and the results were

''Width 640, Height 480. 24 bpp picture.''.Now i added the decoding option
to that picture and it seems to be working but the memcpy wont copy the
buffer to screen.''makes pointer from integer''.....

Is there ANY way to copy the buffer to screen???...i tryed to read the
blit.c but argh!..
the program checks how many 'pages' it needs and then the ''setpage'
function updates it.
but the picture itself wont be seen in the screen because the memcpy gives
that error.

im so close....but....    

Thanks for helping me !, email your ideas to pekkaka AT dlc DOT fi


-- 
He really needs help.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019