screen problem

AmigaOS specific forum
xperience2003
Enthusiast
Enthusiast
Posts: 111
Joined: Tue Oct 05, 2004 9:05 pm
Location: germany
Contact:

screen problem

Post by xperience2003 »

screen problem

Code: Select all


InitPicture(0)
InitBitMap(0)
InitScreen(0)
InitPalette(0)

OpenScreen(0,640,256,8,0)

  res.l = LoadPicture(0,"backs/c3.iff")

  If res>0

   AllocateBitMap (0, 640, 256,8)
   PictureToBitMap(0, BitMapID())

   GetpicturePalette(0,pictureID())
   DisplayPalette(0, ScreenID())   ;

      DrawingOutput(screenRastPort())
      CopyBitMap(BitMapID(),0,0,0,0,640,256)

      MouseWait()

      FadeOut(0, ScreenID(), 5, 255)
      EndIf
End
my prog opens a screen and display the image, but only half of the picture. how can i switch the screenmode to hires?

and...i don't understand the screentags, have anybody a useful example code plz?
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Post by Amiga5k »

Wow, someone's actually writing an Amiga program? Nice!

Haven't tried it yet (the Amiga version), but I'm suprised to see some Amiga-only commands in there...

Russell
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
leodh
Enthusiast
Enthusiast
Posts: 164
Joined: Sun Nov 06, 2005 6:07 am
Location: Perth Western Australia

Post by leodh »

Hi xperience2003,

I had a quick try of your code and it seemed to work fine on my A4000, I even tried it with WinUAE and it worked but lock the computer on exit.

The only things I can think of is the size of picture you are trying to display or that the picture is corupted may have some thing to do with it.
Regards
Leo
Post Reply