It is currently Fri Apr 03, 2020 5:48 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: screen problem
PostPosted: Fri Jan 06, 2006 3:01 am 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 05, 2004 9:05 pm
Posts: 103
Location: germany
screen problem

Code:

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?

_________________
Kultstudio


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Jan 08, 2006 5:28 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Apr 25, 2003 8:57 pm
Posts: 329
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 ***


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jan 10, 2006 4:21 am 
Offline
Enthusiast
Enthusiast

Joined: Sun Nov 06, 2005 6:07 am
Posts: 162
Location: Perth Western Australia
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye