home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2114 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: xs4all.nl!not-for-mail
  2. From: yrozijn@xs4all.nl (Yvon Rozijn)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Datatype remap locks up system
  5. Date: 25 Jan 1996 19:29:35 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4e8lmv$6u3@news.xs4all.nl>
  8. NNTP-Posting-Host: asd03-12.dial.xs4all.nl
  9. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  10.  
  11. I use a datatype to read a picture (iff, gif, jpeg or whatever), and I
  12. want to remap it to the colors in my screen. The remapping phase seems
  13. to lock up the system.
  14.  
  15. Here's my code:
  16.  
  17.    struct gpLayout gpl={0};
  18.  
  19.    if(object=NewDTObject(name,
  20.       DTA_SourceType,DTST_FILE,
  21.       DTA_GroupID,GID_PICTURE,
  22.       PDTA_Remap,TRUE,
  23.       PDTA_Screen,myscreen,
  24.       PDTA_FreeSourceBitMap,TRUE,
  25.       TAG_END))
  26.    {
  27.       gpl.MethodID=DTM_PROCLAYOUT;
  28.       gpl.gpl_GInfo=NULL;
  29.       gpl.gpl_Initial=TRUE;
  30.       if(DoDTMethodA(object,NULL,NULL,(Msg)&gpl))
  31.       {
  32.          ...etc
  33.  
  34. During the DoDTMethodA() the entire system freezes.
  35.  
  36. What am I doing wrong?
  37.  
  38. Yvon.
  39. -- 
  40.                  ___                                   _
  41.    Q          : |  #|           :  \|/  http://www. : [_]_
  42.  -<_>- Yvon   : | ==| yrozijn@  : >WWW< xs4all.nl/  : === ) Amiga
  43.   / \  Rozijn : `---' xs4all.nl :  /|\  ~yrozijn    :     O  4000
  44.