02 January 2014, 21:32 | #781 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
|
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? |
02 January 2014, 21:47 | #782 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
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.
|
02 January 2014, 21:57 | #783 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
|
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. |
03 January 2014, 06:53 | #784 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
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. |
03 January 2014, 07:15 | #785 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
|
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. |
03 January 2014, 07:22 | #786 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
w/o the card they are not shifted.
|
03 January 2014, 08:19 | #787 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
|
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. |
03 January 2014, 08:32 | #788 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
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().
|
03 January 2014, 08:36 | #789 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
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 |
03 January 2014, 08:42 | #790 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
|
Try this please:
Ok removed, I hope you got it. |
03 January 2014, 08:46 | #791 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
Sorry, I cannot decrunch rar here. Please send zip or lha.
|
03 January 2014, 08:51 | #792 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
|
How to detect E-UAE ?
|
03 January 2014, 08:59 | #793 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
Ok, now the icons are not shifted anymore.
Btw, I noticed that os4/png icons are not antialiased at their edges. |
03 January 2014, 09:04 | #794 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
|
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 ? |
03 January 2014, 09:15 | #795 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
I do not know that.
|
03 January 2014, 09:19 | #796 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
|
Ok, I will create another shell command to switch these pixel shifts on or off.
|
03 January 2014, 09:29 | #797 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
I guess it has to do something with the tags borderless/frameless or such. Borders are typically one pixel.
|
03 January 2014, 14:00 | #798 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
I just tested your previous version that showed the shifting with WinUAE and found that the shifting happens there also.
|
03 January 2014, 14:25 | #799 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
|
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.
|
05 January 2014, 19:29 | #800 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
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 |
Currently Active Users Viewing This Thread: 2 (0 members and 2 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 |
|
|