Tk Source Code

Artifact [9c7f1e09]
Login

Artifact 9c7f1e097090ce01d8fbb60ee7d55b5e2d2ca64b672ab550ef55dfa4e1a6fdb4:

Ticket change [9c7f1e09] - Ticket [4af5ca19] XCopyArea is very (very) slow on macOS with version 9 status still Open with 4 other changes by marc_culler 2025-07-26 21:34:42.
D 2025-07-26T21:34:42.893
J icomment Thank\syou\sChristopher.\s\sI\swas\sactually\squite\sworried\sabout\sthat.\r\nHowever,\sthe\schanges\sI\smade\sin\sXCopyArea\sonly\saffect\sthe\scase\swhere\r\nboth\ssource\sand\sdestination\sare\spixmaps.\s\sIt\sseemed\sto\sme\sthat,\sin\sthat\r\ncase,\sscaling\scould\snot\spossibly\sbe\san\sissue\sso\sone\scould\ssimply\sextract\r\nthe\ssource\srectangle\sfrom\sthe\ssrc\sdrawable\sas\sa\sCGImage\sand\sthen\sdraw\sthat\r\nCGImage\sinto\sthe\scontext\sof\sthe\sdst\sdrawable.\s\sDo\syou\sagree?\r\n\r\nOf\scourse\sthere\sare\sstill\ssome\sweird\sthings.\s\sFor\sexample,\sif\syou\stake\sa\r\nscreenshot\sof\sa\srectangle\son\sa\sRetina\sdisplay\sand\sthen\sdisplay\sthe\sresulting\r\npng\simage\sin\sa\sTk\slabel,\sthe\sdimensions\sof\sthe\slabel\simage\swill\sbe\stwice\r\nas\slarge\sas\sthe\sdimentions\sof\sthe\srectangle\sused\sfor\sthe\sscreenshot.\r\nApple\streats\seach\s0.5x0.5\ssubpixel\sas\sa\spixel\swhen\sit\sgenerates\sthe\spng\r\nfile.\s\sBut\sI\sdon't\sthink\sthat\sTk\scan\sdo\sanything\sabout\sthat.\s\sIt\shas\sno\r\nknowledge\sof\sthe\ssource\sof\sa\s.png\sfile,\sand\smust\sdisplay\s1\spng\spixel\sas\sa\r\nsquare\swith\ssides\sof\slength\s1\sApple\spoint\son\san\sApple\sscreen,\swhether\sor\r\nnot\san\sApple\spoint\scorresponds\sto\sthe\swidth\sof\sa\sscreen\spixel\sor\sto\stwice\r\nthe\swidth\sof\sa\sscreen\spixel\sfor\sthat\sparticular\sscreen.\r\n\r\nI\swill\stry\sto\scheck\sthat\sthis\schange\sdoes\snot\scause\sa\sregression\sof\r\n[685ac30727].
J login marc_culler
J mimetype text/plain
J username Marc\sCuller
K 4af5ca1921122de63f37a99beefb2f5dbef72518
U marc_culler
Z 5112ce2df314472e253ecbb72aab80d8