MUT bug, when no floppy present..

Please post any bugs you have found
Message
Author
User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#21 Post by BarryK »

Er no, I got an error with the above change.
So I did this:

Code: Select all

image create photo ::img::img(fd0)     -file "$mut/icon/fd3.ppm"
image create photo ::img::img(fd3)     -file "$mut/icon/fd3.ppm"
image create photo ::img::img(fd5)     -file "$mut/icon/fd5.ppm"
...is that okay?

User avatar
cplater
Posts: 56
Joined: Sat 11 Jun 2005, 11:51
Location: Huntsville, Alabama

#22 Post by cplater »

BarryK wrote:Er no, I got an error with the above change.
So I did this:

Code: Select all

image create photo ::img::img(fd0)     -file "$mut/icon/fd3.ppm"
image create photo ::img::img(fd3)     -file "$mut/icon/fd3.ppm"
image create photo ::img::img(fd5)     -file "$mut/icon/fd5.ppm"
...is that okay?
That should work fine. The error message was about it wanting to display an image that it did not load and should make it happy. I don't know what uses the fd5 image but something must reference it in your system. When I get some more time I will take a deeper look at the code and see what is going on. On my NTA system there is no floppy so I would prefer in not show up at all.

C. Plater

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#23 Post by Jesse »

Hi,

I must get back to this forum more often
For those interested, here is a fix that does not use extra memory for a duplicate image

change this (line 675):
if {[llength [split $fdinfo |]]>3} {
set icon "fd[lindex [split $fdinfo |] 1]"
}
to this:
if {[llength [split $fdinfo |]]>3} {
set fdx [lindex [split $fdinfo |] 1]
if {$fdx != 5} { set fdx 3 }
set icon "fd$fdx"
}

Jesse

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#24 Post by Lobster »

BarryK wrote: (who still has a 5inch floppy drive?)
Me.
I was hoping to use it to get some old
DOS and other programs working with Wine
- but who has time for that sort of indulgence . . .
I must admit I just replaced the 5 1/4" with a second
(working) CD writer - that has a top speed of x2
BUT it works . . .
and I have the 5 1/4" on standby
Anyway not sure if keeping it in just for my future fantasy
is required - but it is a MUT so maybe should be there . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Post Reply