C (147/257)

From:
Date:16 Feb 2001 at 18:32:34
Subject:Screens and IDCMP

Hello,

I'm doing some experiments with the iff.library to open a iff file on a
screen the screen.

Now i have some questions, would be nice if someone could help me with this
ones:

* I wanted to add something so the user could close the app. I started with
some messageloop, that i copied from some sources. But then i found out,
they where meant for windows, then i searched the Screen-struct and i
didn't find the UserPort. Problemo :). 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???

* 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?

* The pic i'm trying to display is a 320x200x8 ilbm. Now i open a screen a
screen using SA_DisplayID, 0x00021000. This is the PAL-Lowres ID (this one
is 320x256x8), but i also use CGFX and want to make the program work on my
CV3D. I found out that the DisplayID for a 320x240x8 CGFX screen would be
0x40d2000. I tried this one but i doesn't work, only a black screen that
quits when i click with my lefty.... Do i need to do something special when
working with CGFX?

* 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???

Sorry for my bad English and the lot of questions, I just started again
doing some programming on the AmigaOS.



Groeten,

Joris Kempen - webmaster
visit www.detrekkers.com

Politicians should read science fiction, not westerns and detective
stories.
-- Arthur C. Clarke

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/982344944/
---------------------------------------------------------------------_->