English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 09 November 2014, 18:07   #1241
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 840
Default, do you mean before snapshooting ? (Ok) Or always ? (Not the best option imho)
Michael is offline  
Old 10 November 2014, 18:16   #1242
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
The DOpus5 lister toolbar appears only for PNG disk icons by default (AmiKit needs that).

Of course, you can always change the drawer flags and viewmodes as you like them and then snapshot the lister which will automatically convert the PNG icon into the OS 3.5 format and save your settings.
PeterK is offline  
Old 11 November 2014, 04:18   #1243
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 840
This raises another long awaiting question...
Currently the lib converts all icons to 3.5 format on snapshot, apart from plain ones. Right ?
Can we have a setting to prevent conversion ? (at least I am interested in OS4 icons, so that I don't have to worry that I mess them up when snapshoting them under OS3)
But I guess it might be useful for other formats too.
Michael is offline  
Old 11 November 2014, 05:09   #1244
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
A simple icon snapshot won't convert an OS4 icon into the OS 3.5 format, because the OS4 icons have a standard DoslObject structure where the icon position can be updated without overwriting the rest. Only disk and drawer icons are converted when their windows are changed with snapshot.
PeterK is offline  
Old 11 November 2014, 09:42   #1245
Retrofan
Ruler of the Universe
 
Retrofan's Avatar
 
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,195
Quote:
Originally Posted by PeterK View Post
Only disk and drawer icons are converted when their windows are changed with snapshot.
But also after a request to change them if you wish.
Retrofan is offline  
Old 11 November 2014, 10:26   #1246
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
No, there is no safety check (requester) yet like you get it when you snapshot PNG icons. I'm thinking about creating a general TrueColor safety check atm, but I don't promise anything now. Let me see if it's possible without consuming any extra code. Maybe, I don't know ...
PeterK is offline  
Old 12 November 2014, 00:13   #1247
Tumo007
Registered User
 
Join Date: May 2007
Location: Montreal, CANADA
Posts: 56
Quote:
Originally Posted by PeterK View Post
Thanks! I don't know how I've missed to see that on Aminet.

I greatly appreciate your work on the icon.library. PeterK seal of quality
Tumo007 is offline  
Old 14 November 2014, 15:02   #1248
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
Update to icon.library 46.4.400:

You will always see a requester now when PNG or OS4 TrueColor icons need to be converted into the OS 3.5 format.
PeterK is offline  
Old 14 November 2014, 17:57   #1249
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 840
So then... Snapshoting an OS4 icon or copying it by dragging in DO forces a conversion.
If you cancel the conversion, the icon is not copied by D&D! And an error is displayed.

Works a bit better under WB, that allows a simple snapshot, but not D&D copying.
(even move from one folder to the other on ram: disk gives a requester)
Michael is offline  
Old 14 November 2014, 19:17   #1250
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
Workbench and DOpus5 have a totally different behaviour (DOpus5 is really a pain)

But anyway, I prefer to convert all TrueColor icons to the OS 3.5 format.
PeterK is offline  
Old 14 November 2014, 20:00   #1251
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 840
I know, but can we avoid the DO error message if we press cancel ?
Locale support for the requester ?
Michael is offline  
Old 14 November 2014, 21:42   #1252
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
No, I have to return an error code like "object of wrong type" to the caller to abort the complete action (like copying a drawer with all contents) and not only skipping the writing of the drawer icon. The second requester is caused by DOpus5 directly.

And no again, localization is not planned.
PeterK is offline  
Old 15 November 2014, 09:31   #1253
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 840
In my test I drag several tool icons from one folder to the other.

We get a requester, so we hit abort for each icon.

Now, under WB this operation completes fine and icons are copied as is. 1:1
Under DO this operation fails, and nothing is copied.

If we press convert, DO and WB behave the same and copy the icons (with conversion) and exe files associated with them.
Michael is offline  
Old 18 November 2014, 19:22   #1254
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 840
Some more interesting comparison results on same 060 hardware and 16bit CGX.

ScalOS 41.8! (I believe some things it does through the icon lib, some by itself)

CrystalPack - 5.98 s
KensPack - 19.30 s (native pngicon loader - shows only 1st image and tints for selected)
KensPack - 17.96 s (disabled pngicon loader - both images are loaded)

AmigaOS 4.1 on same hardware Classic 603e/180

CrystalPack - 2.30 s (either there was some improvement there, or the ppc pulls it out very well, still slower then 060!)
KensPack - 6.58 s - (with png module 53.1)

Last edited by Michael; 19 November 2014 at 21:01. Reason: updated speed results
Michael is offline  
Old 20 November 2014, 03:56   #1255
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
Update to icon.library 46.4.401:

A bugfix for a MuForce hit in the direct drawing code of the 68020 version.

And a replacement for the inflate routine of the 68000 version. The new code that has been written and released by Keir Fraser is 2.7 kB shorter and consumes 35 kB less memory. Many thanks to Kaffer !! Well done
PeterK is offline  
Old 22 November 2014, 13:22   #1256
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
Update to icon.library 46.4.402:

It's now possible to disable the delayed colormapping of the 2. icon image with the command NoDelayedImage2. This may be required for a few gfx-cards, like the Voodoo 4 with Mediator, to avoid graphics corruption while dragging icons.
PeterK is offline  
Old 23 November 2014, 14:05   #1257
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 840
@PeterK
Have done some more tests with D&D of icons in different conditions.
WB and Scalos accept (Abort requester) and copy the tool and it's icon without changes from one dir to the other (different device) or move tool & icon if it's on the same device.

With DO it's a bit different, we can do the same if we drag tool & icon in list mode, but not in icon mode. When ever we do a D&D with icon we get a requester for conversion of OS4/PNG icon and (Abort conversion) fails to copy or move anything.

Tried different icon copy modes in DO prefs. But no luck.
Are you sure there is no work around this ? Why can't we pass a pointer to the original image and copy it byte byte without modifying it if we pressed (Abort)

@Anyone
Cache icon images in DO. Fiddled around with it, any idea how it works? I could not notice any difference in speed with it enabled or disabled.
Michael is offline  
Old 24 November 2014, 14:32   #1258
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,383
Quote:
Originally Posted by Michael View Post
Whenever we do a D&D with icon we get a requester for conversion of OS4/PNG icon and (Abort conversion) fails to copy or move anything. ... Tried different icon copy modes in DO prefs. But no luck. Are you sure there is no work around this ?
Instead of using Drag&Drop you have to use Copy&Paste. That makes a 1:1 copy!
Quote:
Cache icon images in DO. Fiddled around with it, any idea how it works? I could not notice any difference in speed with it enabled or disabled.
The cache is for deficons only. With the cache enabled it should load a large number of the same deficon faster.
PeterK is offline  
Old 25 November 2014, 11:05   #1259
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 840
Copy&Paste, the AmiKit setup style I guess. I hate this function and never got to using it (just like windows), it's just not what we are used to, and it's not like WB.
It is ok for coping something, but when you move something on one disk from folder to folder, this will not work as easy, unless there is Cut&Paste mode.
Dragging files in lister mode, or lister to icon works fine too = 1:1 copy.
Guess we will have to leave with it until someone comes with a bright idea.
Michael is offline  
Old 25 November 2014, 22:44   #1260
Retrofan
Ruler of the Universe
 
Retrofan's Avatar
 
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,195
I've been trying Icon.library 402 with DOpus. If you make a Clean Up to change the icons position and you want to snapshot them it will ask if you want to convert them, but if you don't want to convert them it won't save the new position, as the only options are "Yes, this icon", "Yes, always" and "No, abort".
Retrofan 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 19:34.

Top

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