home *** CD-ROM | disk | FTP | other *** search
- Path: xs4all.nl!not-for-mail
- From: yrozijn@xs4all.nl (Yvon Rozijn)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Datatype remap locks up system
- Date: 25 Jan 1996 19:29:35 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <4e8lmv$6u3@news.xs4all.nl>
- NNTP-Posting-Host: asd03-12.dial.xs4all.nl
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
-
- I use a datatype to read a picture (iff, gif, jpeg or whatever), and I
- want to remap it to the colors in my screen. The remapping phase seems
- to lock up the system.
-
- Here's my code:
-
- struct gpLayout gpl={0};
-
- if(object=NewDTObject(name,
- DTA_SourceType,DTST_FILE,
- DTA_GroupID,GID_PICTURE,
- PDTA_Remap,TRUE,
- PDTA_Screen,myscreen,
- PDTA_FreeSourceBitMap,TRUE,
- TAG_END))
- {
- gpl.MethodID=DTM_PROCLAYOUT;
- gpl.gpl_GInfo=NULL;
- gpl.gpl_Initial=TRUE;
- if(DoDTMethodA(object,NULL,NULL,(Msg)&gpl))
- {
- ...etc
-
- During the DoDTMethodA() the entire system freezes.
-
- What am I doing wrong?
-
- Yvon.
- --
- ___ _
- Q : | #| : \|/ http://www. : [_]_
- -<_>- Yvon : | ==| yrozijn@ : >WWW< xs4all.nl/ : === ) Amiga
- / \ Rozijn : `---' xs4all.nl : /|\ ~yrozijn : O 4000
-