comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » repeated use of TVRD() gives different results
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: repeated use of TVRD() gives different results [message #93742 is a reply to message #93741] Tue, 11 October 2016 12:55 Go to previous messageGo to previous message
Burch is currently offline  Burch
Messages: 28
Registered: December 2013
Junior Member
Hmmm, it seems to depend on the type of backing store. On my El Capitan Mac Pro it works fine when set to Pixmap but fails for the others. It will take someone more knowledgeable than me to explain why. Just out of curiosity, is the default backing store different between your Linux and Mac? Or does it work correctly regardless of the backing store setting on the Linux computer?

'IDL_GR_X_RETAIN' set to 0 (None):
IDL> window,0,xsize = 640,ysize=512
IDL> for i=0,19 do print,tvrd(635,507,1,1,/true)
0 0 0
0 0 32
110 117 97
110 117 97
110 117 97
0 0 2
0 0 0
0 0 32
0 0 0
0 0 0
0 0 0
120 113 81
0 0 0
0 48 58
0 0 0
0 0 32
0 0 0
0 0 0
0 0 32
0 0 0
IDL> help, /device
Available Graphics Devices: CGM HP LJ NULL PCL PRINTER PS REGIS TEK X Z
Current graphics device: X
Server: X11.0, The X.Org Foundation, Release 11604000
Display Depth, Size: 24 bits, (1920,1080)
Visual Class: TrueColor (4)
Bits Per RGB: 8 (8/8/8)
Physical Color Map Entries (Emulated / Actual): 256 / 256
Colormap: Shared, 16777216 colors. Translation table: Bypassed
Graphics pixels: Decomposed, Dither Method: Ordered
Write Mask: 16777215 (decimal) ffffff (hex)
Graphics Function: 3 (copy)
Current Font: <default>, Current TrueType Font: <default>
Default Backing Store: None.
Window Status: ---------------------
id typ( x, y, backing store) id typ( x, y, backing store)
0: Win( 640, 512, None)


'IDL_GR_X_RETAIN' set to 1 (Server, System):
IDL> window,0,xsize = 640,ysize=512
IDL> for i=0,19 do print,tvrd(635,507,1,1,/true)
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
110 117 97
0 0 0
0 0 0
0 0 32
0 0 0
110 117 97
0 0 0
0 0 0
0 0 32
0 0 32
0 0 32
IDL> help, /device
Available Graphics Devices: CGM HP LJ NULL PCL PRINTER PS REGIS TEK X Z
Current graphics device: X
Server: X11.0, The X.Org Foundation, Release 11604000
Display Depth, Size: 24 bits, (1920,1080)
Visual Class: TrueColor (4)
Bits Per RGB: 8 (8/8/8)
Physical Color Map Entries (Emulated / Actual): 256 / 256
Colormap: Shared, 16777216 colors. Translation table: Bypassed
Graphics pixels: Decomposed, Dither Method: Ordered
Write Mask: 16777215 (decimal) ffffff (hex)
Graphics Function: 3 (copy)
Current Font: <default>, Current TrueType Font: <default>
Default Backing Store: Req from Server.
Window Status: ---------------------
id typ( x, y, backing store) id typ( x, y, backing store)
0: Win( 640, 512, Req from Server)


'IDL_GR_X_RETAIN' set to 2 (Pixmap):
IDL> window,0,xsize = 640,ysize=512
IDL> for i=0,19 do print,tvrd(635,507,1,1,/true)
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
IDL> help, /device
Available Graphics Devices: CGM HP LJ NULL PCL PRINTER PS REGIS TEK X Z
Current graphics device: X
Server: X11.0, The X.Org Foundation, Release 11604000
Display Depth, Size: 24 bits, (1920,1080)
Visual Class: TrueColor (4)
Bits Per RGB: 8 (8/8/8)
Physical Color Map Entries (Emulated / Actual): 256 / 256
Colormap: Shared, 16777216 colors. Translation table: Bypassed
Graphics pixels: Decomposed, Dither Method: Ordered
Write Mask: 16777215 (decimal) ffffff (hex)
Graphics Function: 3 (copy)
Current Font: <default>, Current TrueType Font: <default>
Default Backing Store: Pixmap.
Window Status: ---------------------
id typ( x, y, backing store) id typ( x, y, backing store)
0: Win( 640, 512, Pixmap)
IDL> !version
{
"ARCH": "x86_64",
"OS": "darwin",
"OS_FAMILY": "unix",
"OS_NAME": "Mac OS X",
"RELEASE": "8.5",
"BUILD_DATE": "Jul 7 2015",
"MEMORY_BITS": 64,
"FILE_OFFSET_BITS": 64
}

-Jeff
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Technique to find maximum in 100x100 element moving box
Next Topic: array of structures -- error Conflicting data structures

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:52:31 PDT 2025

Total time taken to generate the page: 0.00429 seconds