Changeset main,82 for main


Ignore:
Timestamp:
01/18/2008 06:47:45 PM (18 years ago)
Author:
David Owen <dsowen@…>
branch-nick:
tui
revision id:
dsowen@fugue88.ws-20080118184745-gqypilkqziatxth7
Message:

Fix: misused UNWIND-PROTECT in WITH-SCREEN. As a side-effect, now returns the
correct value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/window/screen.lisp

    r48 r82  
    3333         (error 'screen-initialization-error))
    3434       (unwind-protect
    35             (start-color)
    36             (dotimes (i 63)
    37               (let ((j (1+ i)))
    38                 (init-pair j (mod j 8) (floor j 8))))
    39             (let ((,screen (make-instance 'screen-window :ptr ,ptr)))
    40               ,@body)
     35            (progn
     36              (start-color)
     37              (dotimes (i 63)
     38                (let ((j (1+ i)))
     39                  (init-pair j (mod j 8) (floor j 8))))
     40              (let ((,screen (make-instance 'screen-window :ptr ,ptr)))
     41                ,@body))
    4142         (endwin)))))
    4243
Note: See TracChangeset for help on using the changeset viewer.