Welcome, Guest. Please login or register.

Author Topic: Probs with P96 and Intuition Screenbuffers  (Read 8052 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Micha1701Topic starter

  • Newbie
  • *
  • Join Date: Aug 2002
  • Posts: 37
    • Show only replies by Micha1701
    • http://www.lanser-online.de.vu
Probs with P96 and Intuition Screenbuffers
« on: December 17, 2002, 01:33:32 PM »
Hi @all!

I´m writing a program using the Intuition Screenbuffers for doublebuffering on a 16bit Screen.

Now I want to paint a rectangle (with four lines) with Draw() and Move(). Before doing this I set the color with SetRGB32() or giving a Colortable while opening the screen with OpenScreenTags(). (I tried both options)

Now my problem. The setting of the color only works with the first Screenbuffer (Bitmap allocated while opening the Screen). The second has its own not changeable color. Even when I change the color while the Buffer is on- or offscreen...

Its also equal which RastPort I use for painting. The
ScreensRastport, WindowRastport or one of the LayerRastports which I created for the Buffer Bitmaps...

Is there anything else I can do? This "mistake" only happens on P96
Screens... On CGX everything works fine....

-Micha
-Micha
 

Offline Crumb

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: Probs with P96 and Intuition Screenbuffers
« Reply #1 on: December 17, 2002, 02:43:28 PM »
I think that P96 doesn't support intuition doublebuffering... you can try to open a taller screen and simulate the switching of buffers with ScrollVPort(). That will work with AGA, CGX and P96.
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline xeron

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show only replies by xeron
    • http://www.petergordon.org.uk
Re: Probs with P96 and Intuition Screenbuffers
« Reply #2 on: December 17, 2002, 02:52:51 PM »
If its a 16 bit screen, why not use Picasso96API.library high-colour routines instead of setting palettes?
Playstation Network ID: xeron6
 

Offline Micha1701Topic starter

  • Newbie
  • *
  • Join Date: Aug 2002
  • Posts: 37
    • Show only replies by Micha1701
    • http://www.lanser-online.de.vu
Re: Probs with P96 and Intuition Screenbuffers
« Reply #3 on: December 17, 2002, 03:16:22 PM »
I had problems using ScrollVP(). The program always crashed...

Screenbuffers work fine. Also with P96. Only the thing with the colors will not work. Tobias Abt (P96 creator) means that this should work and is only an error in my Code.... (I hope so, but where is it???)...

I also don´t want to use specific functions of the P96.library because the program should also run under CGX.... (CGX is emulated by the p96.library but not vice versa)
And functions like Move() and Draw() doesn ´t exists in P96 or CGX library....

Has anybody made a program working with intuitionscreenbuffers under P96?

-Micha
-Micha
 

Offline Micha1701Topic starter

  • Newbie
  • *
  • Join Date: Aug 2002
  • Posts: 37
    • Show only replies by Micha1701
    • http://www.lanser-online.de.vu
Re: Probs with P96 and Intuition Screenbuffers
« Reply #4 on: December 19, 2002, 01:59:00 PM »
Has anybody here ever made a programm which used Intuition Screenbuffers and runs under P96?

How can I made them work probably?

I recognized that the BitMap created with AllocScreenbuffer() is not a P96 BitMap and therefor cannot be locked...

Perhaps this is the main "bug" in my programm and when its gone all runs perfect???

-Micha
-Micha