Commit Graph

20081 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
2431f8f706 Fix TR tests for new contract error messages. 2010-12-29 13:46:57 -05:00
Matthew Flatt
f57b431c2e JIT: although `values' is inlined, don't count it as "simple" 2010-12-29 10:39:37 -07:00
Matthew Flatt
fb42102c62 further performance tweaks for `get-argb-pixels' 2010-12-29 09:44:16 -07:00
Robby Findler
03ff6f3abb noticed a few uses of unsafe primitives in some code that was causing trouble yesterday,
so I refactored it a bit to speed it up by adding a  few more unsafes and lifting
computations out of the main loop. It sped up the 'time' in the program below
by slightly less than a factor of 2.

(define w 200)
(define h 200)
(define bm (make-bitmap w h))
(define bdc (make-object bitmap-dc% bm))
(send bdc set-smoothing 'aligned)
(send bdc set-text-foreground (send the-color-database find-color "blue"))
(send bdc draw-text "ab" 0 0)
(define the-bytes (make-bytes (* w h 4)))
(time
 (let loop ([n 400])
    (unless (zero? n)
         (send bm get-argb-pixels 0 0 w h the-bytes)
	      (loop (- n 1)))))
2010-12-29 09:05:49 -06:00
Robby Findler
56b27975a4 added in missing solutions (Racket and the machines it runs on
got a lot faster in the last 12 or so years. who knew!)
2010-12-29 09:05:48 -06:00
Robby Findler
edbdada36c Rackety 2010-12-29 09:05:46 -06:00
Matthew Flatt
dcbf6c5590 clean up library dependencies in "unstable" collection 2010-12-29 07:49:02 -07:00
Matthew Flatt
ffd4193e32 fix frame registration on show' when current-eventspace' is weird
(i.e., not the frame's eventspace)
 Closes PR 11573
2010-12-29 07:45:49 -07:00
Matthew Flatt
c916e99af5 reduce some memory use of `unstable' doc build
by explicitly closing evaluators
2010-12-28 20:55:32 -07:00
Matthew Flatt
80e5c6cec3 clean up 2010-12-28 20:15:30 -07:00
Matthew Flatt
dc926925aa retain eventspaces weakly 2010-12-28 20:06:57 -07:00
Matthew Flatt
0476ab4fc4 guard against bad pre-mult ARGB
Closes PR 11572
2010-12-28 20:03:56 -07:00
Robby Findler
1d89cfc9d7 2htdp/image fix bitmap scaling to respect alpha channels 2010-12-28 19:08:11 -06:00
Matthew Flatt
3b032893c1 don't JIT-inline `values' in a single-value position 2010-12-28 17:47:03 -07:00
Matthew Flatt
84a4f3f006 remove a forced GC (surely a bad idea) in the weak-hash implementation 2010-12-28 16:16:24 -07:00
Robby Findler
5eec85a5a2 change the way scrolling works so that canvases that are 'primary-owner's are respected when calling scroll-to on an admin
This change may also affect other attempts to scroll, however, so watch for strange scrollings when multiple editor-canvaess are displaying the same text% object.
  closes PR 10853
2010-12-28 16:37:13 -06:00
Robby Findler
ae2d7c47b6 added missing call-as-primary-owner
related to PR 10853
2010-12-28 16:37:11 -06:00
Matthew Flatt
5ea0c93e0f gtk: combo-field% fixes
Closes PR 11569
2010-12-28 14:58:22 -07:00
Matthew Flatt
36e9e6fa20 fix locks on some racket/draw tables to work right in atomic mode 2010-12-28 12:12:53 -07:00
Matthew Flatt
3e3ed33cbf detect and report a case of deadlock 2010-12-28 11:09:45 -07:00
Matthew Flatt
8ac21c745f add show-without-yield' to dialog%' 2010-12-28 10:52:17 -07:00
Matthew Flatt
5339be7594 make language test work with cgc 2010-12-28 10:52:17 -07:00
Matthew Flatt
2e8f771661 adjust password dots again 2010-12-28 10:52:17 -07:00
Robby Findler
4e40efaf37 framework: sometimes put the text completion menu above the line instead of below it
closes PR 10829
2010-12-28 07:33:26 -06:00
Robby Findler
f849f25272 Rackety 2010-12-28 07:33:24 -06:00
Matthew Flatt
b701d309f1 win32: fix EndPaint to avoid GDI leak 2010-12-28 06:21:58 -07:00
Matthew Flatt
7b5d948d33 win32: fix `focus' return value 2010-12-28 05:30:58 -07:00
Matthew Flatt
68e477fd52 implement get-focus-window' and get-edit-target-window' in back end to avoid relying on `on-focus' callback handling 2010-12-28 05:25:26 -07:00
Robby Findler
54c337e5d3 2htdp/image: use erase instead of clear to zero out a bitmap 2010-12-27 21:51:16 -06:00
Robby Findler
835f7753dc generalize the color structs to have an alpha field and then use that in the bitmap conversion functions 2010-12-27 21:51:14 -06:00
Matthew Flatt
0b1f1a4f4e add missing test case for premultiply-alpha fix 2010-12-27 19:34:59 -07:00
Matthew Flatt
5440edfd74 `set-argb-pixels' needs to pre-multiply alpha for a alpha-channel bitmap
Closes PR 11571
2010-12-27 19:14:22 -07:00
Matthew Flatt
719df98d83 prevent dc<%> state contamination among transparent canvases 2010-12-27 17:43:36 -07:00
Matthew Flatt
51ff346e2f clarify mutual exclusion of gtk logging cases 2010-12-27 17:43:36 -07:00
Matthew Flatt
4d008e3021 fix for pre-v2.0 Objective-C 2010-12-27 16:12:36 -07:00
Matthew Flatt
705b11f2b8 a prompt-test fix like the previous one, but for post thunks 2010-12-27 15:24:33 -07:00
Matthew Flatt
958c141508 improve password-mode dots for text-field% 2010-12-27 15:22:53 -07:00
Kevin Tew
aa42f4a582 Fixed Warning output in parallel scribble build 2010-12-27 14:30:10 -07:00
Robby Findler
6fe8643194 adjust teaching languages so that print works properly 2010-12-27 09:16:09 -06:00
Robby Findler
413c0489f2 adjust arity to the global-port-print-handler so that its name is meaningful 2010-12-27 09:16:07 -06:00
Robby Findler
5828906585 tweak contact error message formatting 2010-12-27 09:16:06 -06:00
Matthew Flatt
0d3fbb11fa supress a prompt test that doesn't apply to composable continuations 2010-12-26 16:21:28 -06:00
Matthew Flatt
0fd9a76081 VS SGC build 2010-12-26 09:35:26 -07:00
Matthew Flatt
b404ef9970 fix JIT bug related to 'apply' 2010-12-26 09:35:25 -07:00
Matthew Flatt
1c479bb0fb SGC fixes for Win32 2010-12-26 09:35:23 -07:00
Matthew Flatt
0ef5a01c9b win32: minor repair to single-instance check 2010-12-26 09:35:22 -07:00
Robby Findler
064492d4b8 improved the docs and the contracts for various planet/util functions
closes PR 11079
2010-12-26 08:42:38 -06:00
Matthew Flatt
76b475aa27 avoid compiler warnings 2010-12-26 06:47:53 -06:00
Matthew Flatt
4094bd33f0 fix allocation bug in logging-message construction 2010-12-26 06:47:52 -06:00
Matthew Flatt
f11e66fd71 fix sgcdebug configuration 2010-12-26 06:47:51 -06:00