| From: | |
| Date: | 16 Feb 2001 at 19:18:59 |
| Subject: | Re: Screens and IDCMP |
On 16-Feb-01, Joris Kempen wrote:
> Hello,
> So the q. is: can you make a screen
> work with IDCMP? And how to do it. I was thinking to add a window to it
> that's as big as the screen and render the pic to the Window's Rastport.
> Or maybe open a very little one you couldn't see???
Open a window as big as your screen with the WA_Borderless tag and draw the
pic to the window but make sure you disabled all the system gadgets too
(close,resize,dragbaretc...)
> * My solution now to do this: if(!(*(UBYTE *)0xbfe001 & 0x40)) // Check
> leftmouse
> done = TRUE;
> I found this in some old source, it also mentioned that it was a
> really nasty way of doing :) So probably i shouldn't use. But can someone
> explain me how it works and how has someone found out that it works? It
> does directly something with the interrupts or what?
That code bypasses the OS and checks the register at address 0xbfe001
directly (can't remember which one right now)
> * When you open a a Screen using DisplayID, do you still need to give the
> Width and Height params to the Screen struct and if so, why? I thaught
> that the DisplayID contained all that info???
The display id describes the min & max dimensions of the screen, the depth
and some other stuff. If you don't pass SA_Width/SA_Height during your call
to OpenScreenTags() (or whatever you use) SA_Width is set to STDSCREENWIDTH
and SA_Height is set to STDSCREENHEIGHT (both defined in
intuition/screens.h)
> Sorry for my bad English and the lot of questions, I just started again
> doing some programming on the AmigaOS.
Don't apologise for your bad english (most english people speak and write
bad english, even me)
Regards
A1200/Apollo 1240/25Mhz/16mb FastRam/48x
CD-Rom/56k Modem/15Khz Sonica Monitor
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/982349047/
---------------------------------------------------------------------_->