Changeset 5884


Ignore:
Timestamp:
Feb 10, 2007, 9:29:07 PM (18 years ago)
Author:
Gary Byers
Message:

Need to ensure that floats are CG-FLOATs when appropriate.

Location:
trunk/ccl/examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/examples/tiny.lisp

    r840 r5884  
    7373(defun tiny-setup ()
    7474  (with-autorelease-pool
    75    (slet ((r (ns-make-rect 100.0 350.0 400.0 400.0)))
     75   (slet ((r (ns-make-rect (float 100.0 +cgfloat-zero+)
     76                           (float 350.0 +cgfloat-zero+)
     77                           (float 400.0 +cgfloat-zero+)
     78                           (float 400.0 +cgfloat-zero+))))
    7679         (let ((w (make-instance
    7780                   'ns:ns-window
  • trunk/ccl/examples/webkit.lisp

    r5864 r5884  
    5656(defun browser-window (urlspec)
    5757  ;; Content rect for window, bounds rect for view.
    58   (slet ((r (ns-make-rect 100.0 100.0 800.0 600.0)))
     58  (slet ((r (ns-make-rect (float 100.0 +cgfloat-zero+)
     59                          (float 100.0 +cgfloat-zero+)
     60                          (float 800.0 +cgfloat-zero+)
     61                          (float 600.0 +cgfloat-zero+))))
    5962        (with-autorelease-pool
    6063         (let* ((url (if (typep urlspec 'pathname)
Note: See TracChangeset for help on using the changeset viewer.