home *** CD-ROM | disk | FTP | other *** search
- (in-package :ccl)
-
- (let ((*warn-if-redefine-kernel* nil))
-
- (defmethod focus-view ((view simple-view) &optional font-view &aux wptr)
- (without-interrupts
- ;; reset the origin of the last wptr (this is a concession to gwviews).
- ;; assumption is that they are all originally 0 based.
- ;; doesn't hurt for windows.
- ;(#_setorigin :long #@(0 0))
- (if (setq wptr (wptr view))
- (let* ((org (view-origin view)))
- (set-gworld wptr)
- (#_SetOrigin :long org)
- (let ((vcr (view-clip-region view)))
- (and vcr (#_SetClip :ptr vcr)))
- (when font-view
- (multiple-value-bind (ff ms) (view-font-codes font-view)
- (when ff
- (set-wptr-font-codes wptr ff ms))))
- (setq *current-font-view* font-view)
- (setq *current-view* view))
- (focus-view nil font-view))))
-
- )