English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 02 January 2014, 21:32   #781
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
Hi AGS,
its a feature of my library (and you may like it or not) that it replaces all planar icon images which are smaller than 8x8 pixels with my standard 8x8 dot image, because I don't like tiny icons (hardly to see and to click on). So please make your images at least 8x8 pixels in size.

Why do you use the "darken" function for generating the second image when the first image has only black and no other color. Black cannot be made darker ! Why do you use the OS 3.5 colormapping for such an icon instead of using a planar image with one bitplane?
PeterK is offline  
Old 02 January 2014, 21:47   #782
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
No you misunderstood me. My icons are displayed, but shifted. I don't know which functions and features I use as I generated the symbols with the standard icon editor and that is not very informative. Further I don't know much about icons.
AGS is offline  
Old 02 January 2014, 21:57   #783
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
No I didn't misunderstood you.

Update:
But you didn't tell me yet anything about how you tried to create these icons.
My assumption was, that you used the OS 3.9 IconEdit, but it seems to be impossible to get a problem like yours with this tool. If the images in the OS 3.9 IconEdit are not at the right position then you can move the images by clicking on the arrow gadgets in the tools area.

So, how did you do it ?

Last edited by PeterK; 03 January 2014 at 01:14.
PeterK is offline  
Old 03 January 2014, 06:53   #784
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
I created the icons with the os 3.9 icon editor. I use icons as symbols for my gadgets in my GUI.

I saved the attached Icons as you said and they are greater than 8x8 pixels. I use DrawIconStateA(). With your lib they are drawn shifted one pixel to the right and one pixel to the bottom. May be my mistake somehow but I just want to find it out.
Attached Files
File Type: zip dirfile.zip (520 Bytes, 104 views)
AGS is offline  
Old 03 January 2014, 07:15   #785
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
I guess that you are using a gfx-card and thus the direct drawing mode. Right?
If so, then please try to switch to an AGA screenmode just to see if the images are shifted there too.
PeterK is offline  
Old 03 January 2014, 07:22   #786
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
w/o the card they are not shifted.
AGS is offline  
Old 03 January 2014, 08:19   #787
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
Strange !

I've just tested your icons with WinUAE and P96 in truecolor and hicolor, but there are no shifts. What is your gfx-card and is it a CGX-driver ??

When you select the drawer icon is there a shifting by one pixel depending on whether you press the left mouse button or not ? Pressing it down switches into the dragging mode which can be used as the correct reference position.

Last edited by PeterK; 03 January 2014 at 08:26.
PeterK is offline  
Old 03 January 2014, 08:32   #788
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
My 'gfxcard' is E-UAE with P96 and truecolor. The test w/o gfxcard was E-UAE booted w/o startup-sequence. Pressing the mouse above my icons has no shifting effect. They are just drawn shifted when I call DrawIconStateA().
AGS is offline  
Old 03 January 2014, 08:36   #789
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
Post

These are the Tags I use:

Code:
.tags		dc.l	ICONDRAWA_EraseBackground,0
		dc.l	ICONDRAWA_Frameless,1
		dc.l	ICONDRAWA_Borderless,1
		dc.l	TAG_END
AGS is offline  
Old 03 January 2014, 08:42   #790
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
Try this please:
Ok removed, I hope you got it.
PeterK is offline  
Old 03 January 2014, 08:46   #791
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
Sorry, I cannot decrunch rar here. Please send zip or lha.
AGS is offline  
Old 03 January 2014, 08:51   #792
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
How to detect E-UAE ?
PeterK is offline  
Old 03 January 2014, 08:59   #793
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
Ok, now the icons are not shifted anymore.

Btw, I noticed that os4/png icons are not antialiased at their edges.
AGS is offline  
Old 03 January 2014, 09:04   #794
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
Yes, I know that the OS4 icons try to hide their awful edges sometimes by using the alpha blending. Maybe, I will do the same what I make with the PNG icons, using two levels of merging with gray before it gets transparent. But I don't support alpha blending or truecolors.

But do you know how to detect E-UAE easily ?
PeterK is offline  
Old 03 January 2014, 09:15   #795
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
I do not know that.
AGS is offline  
Old 03 January 2014, 09:19   #796
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
Ok, I will create another shell command to switch these pixel shifts on or off.
PeterK is offline  
Old 03 January 2014, 09:29   #797
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
I guess it has to do something with the tags borderless/frameless or such. Borders are typically one pixel.
AGS is offline  
Old 03 January 2014, 14:00   #798
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
I just tested your previous version that showed the shifting with WinUAE and found that the shifting happens there also.
AGS is offline  
Old 03 January 2014, 14:25   #799
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
Hmm, all available details about your Amiga screenmode (size, depth, modeid) and your WinUAE version, gfx-card settings, screenmode etc please. WinUAElog.txt, WinUAEbootlog.txt and config please.
PeterK is offline  
Old 05 January 2014, 19:29   #800
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
The WinUAE is from 2011. But I tried it with a new FS-UAE and it was the same, the shifts are there. I was not able to find any logfiles, however logging was turned on. I guess the problem is, how I draw the icons:

Code:
.tags		dc.l	ICONDRAWA_EraseBackground,FALSE
		dc.l	ICONDRAWA_Frameless,TRUE
		dc.l	ICONDRAWA_Borderless,TRUE
		dc.l	TAG_END
I supply no DrawInfo within the tags to DrawIconStateA() and a2 set to zero (sub.l a2,a2).
AGS is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
ClassicWB Full and icon.library 46.4 Retroplay project.ClassicWB 8 05 August 2018 13:57
WB library conflict/versions Amiga1992 support.Apps 3 22 July 2010 18:47
PNG Icon to Color Icon Converter? Leandro Jardim request.Apps 1 24 May 2010 04:39
What's the latest version of icon.library for OS3.9? NovaCoder support.Apps 3 30 June 2009 15:43
Requesting icon.library v44+... nikvest request.Other 2 16 September 2007 01:58

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:31.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.16445 seconds with 13 queries