Image displayed in a window - possible?

Linux specific forum
User avatar
wichtel
User
User
Posts: 71
Joined: Fri May 02, 2003 11:14 am
Location: Germany
Contact:

Image displayed in a window - possible?

Post by wichtel »

Hallo,
I just started to play with PB on Linux. (SUSE 9.1)
Works fine so far, except pictures.
Imagegadget is not implemented - ok.
2D Drawing works fine, but DrawImage gives a runtime error.
Sprites work, but opening a windowed screen opens always a new window on my system.
Has anybody tried this with API calls yet?
Greetings
Michael
PB 5.40 LTS, W7,8,10 64bit and Mint x64
olejr
Enthusiast
Enthusiast
Posts: 152
Joined: Sun Jul 11, 2004 7:48 pm
Location: Lillehammer, No(r)way
Contact:

Post by olejr »

I had some problems with images too...
Had the desktop set to 16bit,
changed to 24 or 32 bit and it worked...
(The DrawImage error anyway.)
User avatar
wichtel
User
User
Posts: 71
Joined: Fri May 02, 2003 11:14 am
Location: Germany
Contact:

Post by wichtel »

Thanks, I'll give that a try.
(I have problems with Linux and my old graphics card and 24 bit...)
Michael
PB 5.40 LTS, W7,8,10 64bit and Mint x64
User avatar
wichtel
User
User
Posts: 71
Joined: Fri May 02, 2003 11:14 am
Location: Germany
Contact:

Post by wichtel »

@OLEJR:
Perfect, you were right.
24 bit and 32 bit works fine.
:)
PB 5.40 LTS, W7,8,10 64bit and Mint x64
olejr
Enthusiast
Enthusiast
Posts: 152
Joined: Sun Jul 11, 2004 7:48 pm
Location: Lillehammer, No(r)way
Contact:

Post by olejr »

Glad I could help :)

But why it is like this, I don't know...
These commands should work in 15/16bit screen modes,
or even 8bit...
Maybe someone else know...
Num3
PureBasic Expert
PureBasic Expert
Posts: 2810
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Maybe this is the cause why my game does not work under Linux !?

Got to do some research!
olejr
Enthusiast
Enthusiast
Posts: 152
Joined: Sun Jul 11, 2004 7:48 pm
Location: Lillehammer, No(r)way
Contact:

Post by olejr »

Could be.. I found that anything "Image" under Linux
needs a 24/32bit display mode to work. :?
Post Reply