Tk Source Code

View Ticket
Login
Ticket UUID: 220370
Title: Tk_GetPixmap() broken on WinNT
Type: Bug Version: obsolete: 8.0p2
Submitter: welch Created on: 2000-10-31 23:15:49
Subsystem: 68. Win Window Operations Assigned To: nobody
Priority: 2 Severity:
Status: Closed Last Modified: 2001-03-23 04:57:43
Resolution: Fixed Closed By: dgp
    Closed on: 2001-03-22 21:57:43
Description:
OriginalBugID: 638 Bug
Version: 8.0p2
SubmitDate: '1998-05-25'
LastModified: '1999-11-02'
Severity: MED
Status: Released
Submitter: hershey
ChangedBy: hobbs
OS: Windows NT
FixedDate: '1999-11-02'
FixedInVersion: 8.0.5


[email protected]

   I am trying to print color images on NT, and I have just finished
emulating XGetImage() and would like to test it.  But I crash when I
call Tk_GetPixmap().  The code doesn't seem like it could work on NT.
To  parallel the UNIX side, where Tk_GetPixmap() is just the thinest
wrapper around XGetPixmap(), the second parameter is a Drawable.  But
the windows code tries to cast that XID into a pointer to a
TkWinDrawable.  That just doesn't seem like it is going to work.  And I
don't see why one would want to  create all these new Windows drawable
struct types.  A plain X window struct has a palette an any of other
things one would need.  I don't see why the deviation from X.

  I would appreciate any information on how I could implement printing
of color images on NT, or what the future of Tk_GetPixmap() will be, so
I could stay compatible with future releases.

 Thanks, Kirk

Tk_GetPixmap works as necessary on 8.0.5 and the 8.1+ Tk versions. 
-- 11/02/1999 hobbs