Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Benjamin Herrenschmidt <benh@pasglop.(none)>
|
|
Add a simple event layer for joystick devices.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
The cursors used by twin compress well, so allow twin_cursor to load a
compressed cursor file when zlib is present. In both cases,
uncomressed cursors still work.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
This change to the libtwin build system detects altivec support, and
sets cflags and a #define HAVE_ALTIVEC if found.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
Remove -fno-struict-aliasing as I think the code is generally
safe due to the proper use of unions when an object can have
multiple different types. twin_timeout.c did have some dodgy
casts that I removed.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
The existing twin.pc file was generated, but not installed. This change
installs it (as libtwin.pc), and uses the more flexible TWIN_DEP
variables.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
This change adds twin_png to the default build of libtwin.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
This change adds --disable options to prevent building
the x11, fbdev, linux-mouse and ttf components, even if
they're found by pkgconfig.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
Looks like the idea of splitting up the twin libraries into
componenets (eg, libtwin-x11.so for x11-specific stuff) wasn't
working too well.
Instead, we should stick to the one shared library, whose contents
change depending on the available dependencies.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
Change the Makefile.am to not use recursive make - this will allow
future dependencies on the twin library without too much automake pain.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
This change moves the twin demo applications to a new subdirectory
(twin_demos), and updates the auto{conf,make} setup to suit.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
This change separates twin into a set of libraries (libtwin,
libtwin-x11, libtwin-fbdev and libtwin-mouse).
Also, generally improve the autoconf magic to make this all work.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
the converter might still be a bit dodgy, I'd appreciate somebody who
knows that stuff better to have a look :-)
Basically, I added back the type '2' operation to the glyph data parser
that was used by the previous ttf parser before it got removed and fixed
it up to work in the new context. I pondered using the 'c' "generic"
curve operation instead and put the burden of conversion in the converter
application, but that would have caused bigger converted font files,
so I chose to keep the old op.
Various bits & pieces of the font code are modified to cope with the
non-stroke fonts (mostly there is no "pen" to account for and we don't
convolve but just append the glyph path to the current path).
Full support for unicode pages is back. The stroke font has only page 0
for now (the initial code seemed to have more tables I didn't feel like
re-converting that so if you want stroke font with more unicode pages,
it's up to you to dig the old format and convert it to detect snaps and
use curves). We may want to add arguments to twin_ttf converter to only
convert a subset of the pages in a font for compactness.
Examples still use the built-in font but it's easy enough to change the
g_twin_font global and link a generated font file in (tested with
Vera.ttf). I still need to add a better way to deal with multiple fonts
at once.
|
|
|
|
AM_INIT_AUTOMAKE()
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
|
|
stuff
Split demos into separate files
Make drawing origin match clip rectangle.
twin_fedit Add glyph editor to CVS to preserve it
Add scalable icons
Separate 'closing' a subpath from 'finishing' a subpath; the former adds a
point back to the start while the latter just leaves the path unclosed
and prepares for a new subpath.
Eliminate locking, add clipping.
Clean up title drawing, use clipping
Eliminate locking, use dispatch stuff
|
|
Add helper functions
Lock pixmaps during drawing
Disable screen updates while applications are busy
Add threads to manage events and redisplay
Paint a clock
|
|
twin_path_cur_point
fix twin_path_step to actually handle duplicate points. Change 'clockwise'
to 'around_order' so that all three possible results are returned
(clockwise, parallel and counterclockwise) Handle disjoint strokes
Add outline and stroke font support (pick one and remove the other)
Huge array of stroke fonts from Hershey. Pick appropriate subset and remove
extra glyphs (there are a lot here)
Eliminate repeated move and close, eliminate duplicate draw.
Add support for 1, 4, 16 and 64 samples. 16 appears to be the magic sweet
spot.
Convert "real" outline fonts to twin built-ins
Converted version of Bitstream Vera Sans Roman
|
|
|