Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Nov 16, 2018 5:00 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Incorrect colours with SpriteSurface
PostPosted: Tue Nov 21, 2006 4:44 pm 
Offline

Joined: Mon Nov 13, 2006 3:41 pm
Posts: 36
Location: Crawley, England
When displaying a sprite through the spritesurface control I get completely messed up colours.

Image

The code I'm using to display the sprite is as follows:

Dim s As Sprite
s = wMain.Surface.NewSprite(sprspritetest,0,0)

sprspritetest is a picture I dragged into the project manager, I've tried many different images and all produce the same effects.

I'm using Realbasic r3 if that helps at all.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Nov 21, 2006 9:45 pm 
Offline

Joined: Mon Sep 11, 2006 10:31 am
Posts: 13
Location: Asunción, Paraguay
Mmmm...

I'm not sure, but try to adjust the SpriteSurface.Depth to 16 or 32 :?:

_________________
REALbasic 2007r1 :: Mac mini G4 1,42 Ghz 256 MB RAM
© 2007, febo-kun


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Nov 21, 2006 9:49 pm 
Offline
User avatar

Joined: Wed Sep 28, 2005 8:39 am
Posts: 9341
Location: St Augusta, MN
Judging by the way the titlebar looks in your screenshots, it looks like you're running the OS with < 24-bit color. Is that the case, or am I just seeing things?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Nov 22, 2006 12:05 am 
Offline

Joined: Mon Nov 13, 2006 3:41 pm
Posts: 36
Location: Crawley, England
I'm running with 32 bit colour. Increasing the spritesurface's depth helped, I just saw that I had it set on 8.


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

All times are UTC - 5 hours


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 © 2000, 2002, 2005, 2007 phpBB Group