shithub: freetype+ttf2subf

Download patch

ref: 1eabbcb45367ba53120e04968ed2efeeb6f5acd6
parent: 7eef5364b88b5884310d053a614c10bcc7cf0ded
author: Just van Rossum <[email protected]>
date: Sun Mar 5 11:09:21 EST 2000

properly behave in case the console window became active

git/fs: mount .git/fs: mount/attach disallowed
--- a/demos/graph/mac/grmac.c
+++ b/demos/graph/mac/grmac.c
@@ -198,6 +198,7 @@
           case updateEvt:
             if ( theWindow && (WindowPtr)mac_event.message == theWindow )
             {
+              SetPort( theWindow );
               BeginUpdate( theWindow );
               refresh_rectangle( surface,
                                  0, 0,
@@ -230,6 +231,10 @@
                     *grevent = our_grevent;
                     return;
                   }
+                }
+                else if (part == inContent)
+                {
+                  SelectWindow( theWindow );
                 }
               }
               else