Age | Commit message (Collapse) | Author | Files | Lines |
|
With very large fonts (72pt or so) I see bad cache glyphs,
and this fixes it. Not entirely sure exactly which code
is overflowing, but something is.
|
|
|
|
Runes in Plan 9 were limited to the 16-bit BMP when I drew up
the RPC protocol between graphical programs and devdraw
a long time ago. Now that they can be 32-bit, use a 32-bit wire
encoding too. A new message number to avoid problems with
other clients (like 9fans.net/go).
Add keyboard shortcut alt : , for U+1F602, face with tears of joy,
to test that it all works.
|
|
|
|
|
|
getdirentries(2) has been deprecated on macOS since 10.5 (ten releases ago).
Using it requires disabling 64-bit inodes, but that in turn makes binaries
incompatible with some dynamic libraries, most notably ASAN.
At some point getdirentries(2) will actually be removed.
For both these reasons, switch to opendir/readdir.
A little clunky since we have to keep the DIR* hidden away
to preserve the int fd interfaces, but it lets us remove a bunch
of OS-specific code too.
|
|
More preparation for opendir.
|
|
|
|
|
|
Linux 2.4 is dead.
(The libthread code hasn't worked for Linux 2.4 for a long time.)
|
|
Pretty sure FreeBSD 4 is gone now. :-)
|
|
|
|
|
|
Under certain conditions it looks like frexp gets #defined
to something else on macOS during system headers,
which then breaks the declaration in libc.h.
|
|
These make no sense and are not really needed at all.
Add a best-effort attempt to get at the gcc/clang macro
in lib9.h, but if it fails, no big deal.
Fixes #324.
|
|
If $font is not set, the default font is constructed from
font data linked into every libdraw binary. That process
was different from the usual openfont code, and so it was
not hidpi-aware, resulting in very tiny fonts out of the box
on hidpi systems, until users set $font.
Fix this by using openfont to construct the default font,
by recognizing the name *default* when looking for
font and subfont file contents. Then all the hidpi scaling
applies automatically.
As a side effect, the concept of a 'default subfont' is gone,
as are display->defaultsubfont, getdefont, and memgetdefont.
|
|
Also add setcursor2, esetcursor2, and draw protocol encoding.
Calls to the old setcursor, esetcursor create a 32x32 by
pixel doubling when needed.
|
|
Change-Id: Ifcef0636ee1e1fd0f9b06a8d1a99d58fae831318
Reviewed-on: https://plan9port-review.googlesource.com/2780
Reviewed-by: Russ Cox <rsc@swtch.com>
|
|
Since glibc 2.20, the _BSD_SOURCE and _SVID_SOURCE macros are
deprecated in favor of the _DEFAULT_SOURCE macro.
See https://sourceware.org/glibc/wiki/Release/2.20#Packaging_Changes
Change-Id: I18dd6a698f3f5aa51d1e45bf53b031bb061e17e8
Reviewed-on: https://plan9port-review.googlesource.com/1500
Reviewed-by: David du Colombier <0intro@gmail.com>
|
|
Change-Id: I0d8b94037309b15f839588c6547acaaaf3e2ed4d
Reviewed-on: https://plan9port-review.googlesource.com/1151
Reviewed-by: Russ Cox <rsc@google.com>
|
|
Change-Id: Id1e6a2630713024a1925ad1341bb9c846f82e93e
Reviewed-on: https://plan9port-review.googlesource.com/1171
Reviewed-by: Russ Cox <rsc@swtch.com>
|
|
Change-Id: I6093955b222db89dfe437fb723593b173d888d01
Reviewed-on: https://plan9port-review.googlesource.com/1170
Reviewed-by: Russ Cox <rsc@swtch.com>
|
|
An experiment.
Change-Id: I40660a211b8372701597d80f7e86917e94cccbaa
Reviewed-on: https://plan9port-review.googlesource.com/1161
Reviewed-by: Russ Cox <rsc@swtch.com>
|
|
Let's see if that's any better.
R=rsc
http://codereview.appspot.com/6850103
|
|
R=rsc
http://codereview.appspot.com/6850102
|
|
R=rsc
http://codereview.appspot.com/6855092
|
|
R=rsc
http://codereview.appspot.com/6858071
|
|
Fixed at 100 right now, but the plan is to make it accurate
and then use it.
R=rsc
http://codereview.appspot.com/6856091
|
|
R=rsc
http://codereview.appspot.com/6742064
|
|
R=rsc
http://codereview.appspot.com/6401049
|
|
The function p9dialparse() returns the host as a sockaddr_storage
structure instead of a u32int, to be able to handle both IPv4
and IPv6 addresses. Because the sockaddr_storage structure also
handle port numbers and Unix path names, there is no longer
need to set them in the calling functions. However, these values
are still returned for convenience.
The sockaddr_in and sockaddr_un structures have been replaced
by sockaddr_storage to handle Unix, IPv4 and IPv6 sockets.
Names and addresses are resolved using either gethostbyname()
or getaddrinfo() functions.
The getaddrinfo() function is documented in RFC2553 and standardized
since POSIX.1-2001. It supports both IPv4 and IPv6 addresses.
The gethostbyname() function is deprecated since POSIX.1-2008.
However, some libc implementations don't handle getaddrinfo()
properly, thus we preferred to try gethostbyname() first.
I've tried to preserve most of the old code logic to prevent
from surprising or unwanted behavior.
R=rsc
http://codereview.appspot.com/6255068
|
|
|
|
These functions are equivalent to vtSha1 and vtSha1Check
from the old libventi and are particularly used by Fossil.
R=rsc
http://codereview.appspot.com/5555064
|
|
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5298088
|
|
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5325046
|
|
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4571065
|
|
thanks to Erik Quanstrom
R=rsc
http://codereview.appspot.com/3469042
|
|
R=rsc
http://codereview.appspot.com/1791044
|
|
R=, rsc
CC=
http://codereview.appspot.com/203061
|
|
http://codereview.appspot.com/116097
|
|
http://codereview.appspot.com/116096
|
|
http://codereview.appspot.com/116075
|
|
|
|
http://codereview.appspot.com/109049
|
|
|
|
|
|
|
|
|
|
|
|
|