canvas, move and pixel dust

canvas, move and pixel dust

Post by Frederic L » Fri, 20 Feb 2004 19:53:42


Hi Folks,

Using the Tk-script below, if you Left-Button-Click on the yellow disc (then keep pressing B1), and move it, some pixel dust is left when you move it from
right->left of the canvas (left to right is fine). To better see them, note that the slower you move the more dust you leave.
Now if I tweak 'radius' from 25 to 26, it does the same, bit if it is set to 24, it leaves the place clean!

Observed on:
Tk8.4.5, WinXPhome -> dust
Tk8.4.4, Win2000Pro -> dust
(if you minimize/maximize or raise/lower it cleans it up.
But:
Tk8.4.4, Sun-Gnome -> fine!

Here are a couple of screenshots:
http://www.yqcomputer.com/
http://www.yqcomputer.com/

Anything I'm doing wrong?, bug?, etc.?

Thanks,

--Fred


#!/bin/sh
# Fred \
exec wish "$0" ${1+"$@"}

if {[string equal $tcl_platform(platform) "windows"]} {
console show
}
puts $tk_patchLevel

proc moveit {object x y} {
set radius 25 ;# 25,26=dust, 24=clean
.screen coords $object [expr $x-$radius] [expr $y-$radius] \
[expr $x+$radius] [expr $y+$radius]
}

pack [canvas .screen -width 200m -height 400 -bg black \
-borderwidth 1]
set myov [.screen create oval 500 50 550 100 -outline orange \
-width 4 -fill yellow]
.screen bind $myov <B1-Motion> {moveit $myov %x %y}

;#end-of-script



.
 
 
 

canvas, move and pixel dust

Post by Kevin Kenn » Sat, 21 Feb 2004 01:39:26


You're not doing anything wrong, and I get the same results
on my Win2k box.

These things are often sensitively dependent on the video
configuration as well (that is, Tk sometimes tickles bugs
in the video drivers...), so for what it's worth:

Name Radeon Mobility
PNP Device ID \
PCI\VEN_1002&DEV_4C59&SUBSYS_00E31028&REV_00\4&45A7597&0&0008
Adapter Type \
ATI Mobility M6 (LY), ATI Technologies Inc. compatible
Adapter Description Radeon Mobility
Adapter RAM 16.00 MB (16,777,216 bytes)
Installed Drivers ati2dvag.dll
Driver Version 5.13.01.3293
INF File oem1.inf (ati2mtag_M6 section)
Color Planes 1
Color Table Entries 4294967296
Resolution 1600 x 1200 x 85 hertz
Bits/Pixel 32

Log it at SourceForge ( http://www.yqcomputer.com/ ),
please?

 
 
 

canvas, move and pixel dust

Post by Frederic L » Sat, 21 Feb 2004 03:32:05

Hi Kevin,


Alright, done (900489)! I disn't get the chance to double-check if a similar issue was logged before.

(I appended your post as well with the card/driver info as I don't have mine handy right now, I hope you don't mind!)

Thanks,

--Fred
 
 
 

canvas, move and pixel dust

Post by mpm_thre » Sat, 21 Feb 2004 05:22:32


I had the same problem. Are you using a laptop?

http://www.yqcomputer.com/

-Matt
 
 
 

canvas, move and pixel dust

Post by Frederic L » Sat, 21 Feb 2004 20:02:04

Hi Matt,


I observed it on both my (brand new) laptop/notebook at home (nVidia card in UXGA (under XP)) and a PC desktop at work (ATI 3D Rage, Win2kPro).
I haven't tried on my older laptop. My Sun Workstation is fine though.

For a follow up, have a look at (URL will more likely be cut on 2 lines when I post):
http://www.yqcomputer.com/

Cheers,

--Fred


.