Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
107 user(s) are online (84 user(s) are browsing Forums)

Members: 0
Guests: 107

more...

Headlines

Forum Index


Board index » All Posts (MinisterQ)




Re: AmigaOS 4.0 datatypes, AISS and MUI
Just popping in
Just popping in


@thomas

MUI have "nothing to talk" in drawing topic. ;) MUI only calls a method MUIM_Draw, which is used for drawing procedures.

The code is simply as possible; this is the init part in
MUIM_Setup:

dto = NewDTObject(data->fileName,
DTA_GroupID, GID_PICTURE,
PDTA_DestMode, PMODE_V43,
OBP_Precision, PRECISION_EXACT,
PDTA_Remap, TRUE,
TAG_DONE);
if(dto)
{
struct image *gi = NULL;
struct BitMapHeader *bmh;

SetAttrs(dto,
PDTA_Screen, (ULONG)scr,
PDTA_UseFriendBitMap , TRUE,
TAG_DONE);

if (gi = (struct image *)MAllocVecPooled(sizeof(struct image)))
{
GetDTAttrs(dto, PDTA_BitMapHeader, (ULONG)&bmh, TAG_DONE);

gi->picObject = dto;
gi->imageFlags |= DFLG_Datatypes;
data->width = bmh->bmh_Width;
data->height = bmh->bmh_Height;


and draw procedure called in MUIM_Draw:

void drawDTPic(Object *dto, struct RastPort *rp, ULONG x, ULONG y, ULONG width, ULONG height)
{
struct BitMapHeader *bmh = NULL;
struct BitMap *bm = NULL;
BOOL success = FALSE;

if (DoMethod(dto, DTM_PROCLAYOUT, NULL, 1))
{
GetDTAttrs(dto, PDTA_BitMapHeader, (ULONG)&bmh, TAG_DONE);
if (bmh)
{
GetDTAttrs(dto, PDTA_DestBitMap, (ULONG)&bm, TAG_DONE);
}
}

if (DataTypesBase->lib_Version >= 44)
{
APTR handle = ObtainDTDrawInfoA(dto, TAG_DONE);
if (handle)
{
success = DrawDTObjectA(rp, dto,
x, y, width, height,
0, 0, TAG_DONE);
ReleaseDTDrawInfo(dto, handle);
}
}

if (!success)
{
APTR mask = NULL;
GetDTAttrs(dto, PDTA_MaskPlane, (ULONG)&mask, TAG_DONE);
if (mask)
{
BltMaskBitMapRastPort(bm, 0, 0, rp,
x, y, width, height,
ABC|ABNC|ANBC, mask);
}
else
{
BltBitMapRastPort(bm, 0, 0, rp, x, y,
width, height, ABC|ABNC|ANBC);
}
}
}

Go to top


Re: Smiling :-D (Part 2)
Just popping in
Just popping in


@LiveForIt

Quote:

broken links.


Oups. Sorry for that. Temporary server malfunction. Server will be available again soon as possible.
Anyway those links should be accesible (my home server):

http://ministerq.homeip.net/1.PNG
http://ministerq.homeip.net/2.PNG
http://ministerq.homeip.net/3.PNG

Animated emoticons are in chat window, and in emoticons selection window.

Decent jabber implementation (not this poor like in Jabberwoocky ;) ) is on the way. And ICQ.
Donations are always welcomed. ;)

Go to top


Re: Smiling :-D (Part 2)
Just popping in
Just popping in


@Mikey_C

Quote:

Until now, no Amiga communications program has had graphical smilies.


Its simply not quite true.
AmiGG (Polish IM - but with english localisation) have graphical, animated smilies since 2005.

http://amigg.integradesign.org/stronka/szots/emots_window.jpg
http://amigg.integradesign.org/stronka/szots/amigg_szaman.jpg
http://amigg.integradesign.org/stronka/szots/pop3_window.jpg

sorry. ;)
My IM has lead the way a "little bit" earler. ;)


Edited by MinisterQ on 2007/7/17 16:54:51
Go to top



TopTop




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project