The `racket/draw` library is now independent of the screen resolution
on Windows. Font sizes in "points" are the only place where the
resolution mattered before, and now `racket/draw` assumes a
traditional 96dpi on Windows and Linux (and a traditional 72dpi
on Mac OS X).
Setting the scale for "text and other items" in Windows now adjusts
the backing scale of screen and canvas-compatible bitmaps, as well as
setting a scale on canvas drawing. Window and screen positions and
sizes are similarly scaled; for example, if the screen is 2048x1436
with text scaled by 200%, then `racket/gui` reports the display size
as 1024x768 (and the display backing scale as 2.0).
Backing scales of 1.25 and 1.5 are common for Windows. Rounding
associated with those scales could cause trouble for virtual -> actual
-> virtual conversions.
original commit: a64a1cb17722a49558ee76b5400d54aa040d1825
If a keymap has a grab, then discard key events that are modifier
changes or key releases.
Adjusts commit 8ba8d01ec0 so that Ctl-u work in DrRackt (and
other framework-based programs).
original commit: b3b9eb0eb4ea8ef4e97bde4b9799f92caf958737
Suppress WM_KEYDOWN messages to a button or checkbox, so that the
top-level window takes care of Space and Return for a button or
checkbox with the keyboard focus.
Closes PR 14710
original commit: 032397d6f9694d4c3dff24e3511d51657d19cf15
Previously, `keymap%` would return #t for all shift, ctrl, and key release
events. DrRacket's editors would then not handle those events (correctly,
as they shouldn't handle already-handled events), meaning that the events
weren't sent to any snips.
original commit: 8ba8d01ec07d45ec67bd06df0670c7498fa20bb9
The `panel%` and `pane%` classes were not originally intended for
direct instantiation; instead, `horizontal-pane[l]%` and
`vertical-pane[l]%` provide basic placements that make sense for
multiple children. Adjusting `pane[l]%` to just overlay all children
seems both sensible and useful (if only one child is shown at a time,
for example).
As suggested by David Nelson.
original commit: 32ae3f83080ab625f0bcfdf907e3682a2da9f36b
The changes to `pen%` and `brush%` are related to the
`racket/class` repair of the previous commit, while the
`style%` change is because I didn't look at it before.
original commit: fd67feddab577f8e756c78a9c2b89a9b4a66dbb5
Use the new AltGr report to enable Control-Alt- combinations in
DrRacket (and other framework programs) when they do not intefere
with plain AltGr combinations.
original commit: 513ff778110b0a4f4ed725a9d4d79bacb275f97f
Port from AppleGL to CoreGL, and implement offscreen drawing through
a framebuffer instead of CGLSetOffScreen() for 10.7 and later.
original commit: a57734d7ae8606b01d9d054bfc761f0c74db2368
racket:get-white-on-black-color-prefs-table
Apparently these contracts have always been wrong;
5.2.1 had these exports with the wrong contracts and
5.2 didn't have them
closes PR 14664
original commit: 10ae6fbb90dc0dde015e6c8e5263ebe12433b19e
Also, fix the docs to clarify that `just-alpha?` as #t means a no-op for
a target bitmap that has an alpha channel.
original commit: a1147335597ef2879ad19678e067a62a6b930973
This change requires a coordinated change to the snip-lib pkg and to
the gui-lib package. The docs are in the gui-doc pkg and yet point to
the snip-pkg as the containing pkg, so I updated the version number
for snip-lib and left the version number for gui-lib alone
original commit: 4b92117a9fd6fb638240bc6e57e25bc9de138c53
in the code that decides what to put in DrRacket's pop up
menu that opens file dialogs for the subdirectories of
the place where the current file is saved
closes PR 14634
original commit: 031a0711cfabcb5ddb53d75cb5c04e8ea1881b2f
The fresh PLTUSERHOME created by `raco test --drdr` should avoid
the problems that made the lock necessary before.
original commit: 165f21a192f28746519c21cfd3b079ac73ff1b84
Modules are not supposed to move to different packages, anymore, so
I'm breaking a rule. The problem is that having `rackunit/docs-complete`
in "scribble-lib" made "scribble-lib" depend on "racket-index", and
that's an undesirable dependency. (Installing Scribble shouldn't
force you to have Racket documentation.) I should have noticed
the problem when I moved `setup/xref` to "racket-index", but I missed
it.
As far as I can tell, there's only one package on pkgs.racket-lang.org
that isn't in the main repository and uses `rackunit/docs-index`. The
package doesn't correctly declare its dependencies, anyway.
original commit: d33c2252e10dbeb22e49c85f03707345e2756ce5
In the case that the flush queue was empty, the first byte that
comes it would appear to have come from a long time ago and
thus get flushed immediately.
Instead, when the first byte comes in, we restart the timer at that
point, intead of holding the old value
original commit: 4db7477b0da5aa6ceca593b53de57caaf4793dd2
Before this commit, autosave files would (incorrectly) contribute to
the file's last modification time in a way that meant that after an autosave,
the warning would start triggering when the file is saved normally
original commit: 5751ebe530c9278aa5cad83e9b27205bc7bc0186
This one of those classic n^2-loop-that-should-be-linear bug. The fix
speeds up this program (when run in DrRacket) by about 1.75x:
(for ([x (in-range 10000)])
(display "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz\n"))
The bug is fairly old too: I introduced this bug on March 6th,
2004. (Thanks, Sam, for making that old history accessible!)
original commit: 95cdd6e6198ea08d0ad7546bb8c19d12b4e5a83f
Raise `exn:fail:{filesystem,syntax}:missing-module` instead of
`exn:fail:filesystem` when a module file does not exist.
original commit: b420967b02f767c50bbae688cad67f2f9cca91e4
1) Indentation rules to to count paren(indentation):
Return number of parenthesis till the outmost “@“ annotation,
if the there is "[", we check if it has "@" right after if and at the
same line, if so, we add the number of characters between "[" and
the beginning of the line it appears
2) line push back rules:
we do not push back lines begin with “@“ that
a) has keyworld "codeblock" or "verbatim" after
b) contains “[” and multiple lines before the closing “]”
original commit: 08718a4e2f3653a329e5f57068849117ab37c623
Finishes repair started in 8cbcba8ed so that mouse events can be
intercepted for `combo%` and `choice%` objects. DrRacket's
font preference choice relies on intercepting mouse events
to populate the menu, for example.
Reference counting doesn't seem to work, probably because the
relevant widgets are supposed to be private.
original commit: 310df9e9cf4607260a64308182088cf40533a0e4