Real Software Forums
http://forums.realsoftware.com/

Incorrect colours with SpriteSurface
http://forums.realsoftware.com/viewtopic.php?f=4&t=9263
Page 1 of 1

Author:  lyptt [ Tue Nov 21, 2006 4:44 pm ]
Post subject:  Incorrect colours with SpriteSurface

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.

Author:  febo-kun [ Tue Nov 21, 2006 9:45 pm ]
Post subject: 

Mmmm...

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

Author:  Aaron Ballman [ Tue Nov 21, 2006 9:49 pm ]
Post subject: 

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?

Author:  lyptt [ Wed Nov 22, 2006 12:05 am ]
Post subject: 

I'm running with 32 bit colour. Increasing the spritesurface's depth helped, I just saw that I had it set on 8.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/