The Racket repository
![]() Seems to work for Mac OS X 10.9 (Mavericks), at least. In Retina mode, a drawing unit corresponds to two pixels on the screen or in a bitmap created by `make-screen-bitmap'. In particular, a bitmap created by `make-screen-bitmap' is actually twice as big in each dimension as requested, and the bitmap is scaled when transferring to other drawing contexts. When transferring onto the screen, scalings cancel so that the result looks right. Adds `get-display-backing-scale` to `racket/gui/base`, and also `get-backing-scale` to `bitmap%`. To do: add a way to set the backing scale of a bitmap. That option will provide a way to give controls higher-resolution bitmaps as labels. |
||
---|---|---|
native-pkgs@5f391155f2 | ||
pkgs | ||
racket | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.mailmap | ||
.travis.yml | ||
INSTALL.txt | ||
Makefile | ||
README.txt |
This is the source code for the main Racket distribution. See "INSTALL.txt" for information on building Racket. License ------- Racket Copyright (c) 2010-2013 PLT Design Inc. Racket is distributed under the GNU Lesser General Public License (LGPL). This means that you can link Racket into proprietary applications, provided you follow the rules stated in the LGPL. You can also modify Racket; if you distribute a modified version, you must distribute it under the terms of the LGPL, which in particular means that you must release the source code for the modified software. See racket/src/COPYING_LESSER.txt for more information.