Commit graph

163 commits

Author SHA1 Message Date
Dana Jansens
15c7707181 dont destroy the match pattern, it seems that Xft holds onto the pointer 2003-06-26 17:51:52 +00:00
Dana Jansens
bf2f0c58ca add comment 2003-06-26 01:35:41 +00:00
Dana Jansens
a12e73cf37 read fonts and titlebar layout from theme files 2003-06-26 01:29:45 +00:00
Dana Jansens
c791cbfda0 set teh X so it gets used right 2003-06-25 21:18:16 +00:00
Dana Jansens
0901ddf891 keep a small space on the sides of windows between the edge and the text 2003-06-25 21:17:15 +00:00
Dana Jansens
5cd0ed57ac do horz grads without any multipliaction 2003-06-24 18:56:47 +00:00
Dana Jansens
1e882b6271 made all the gradients work with integer math. removed the pipecross and rectangle gradietns tho cuz they are ugly and i dont want to code that bullshit cuz they are ugly. 2003-06-24 18:54:18 +00:00
Dana Jansens
dc60657acf integer math for gradients. horz vert and diags and pipecross work so far. 2003-06-24 18:16:23 +00:00
Dana Jansens
0a8fa636cd always create the bg pixmap, X seems to not like it if i dont? 2003-06-21 17:13:45 +00:00
Dana Jansens
dc92dbfc56 don't exit in the render lib, rather return a NULL font/theme on failure 2003-06-21 05:35:05 +00:00
Dana Jansens
5929a63f95 more namespacing with Rr* 2003-06-21 02:39:56 +00:00
Dana Jansens
bb6b616b9c more namespacing with Rr* 2003-06-21 02:39:55 +00:00
Dana Jansens
16066ed282 use the pseudo shit in the instance now 2003-06-21 02:38:47 +00:00
Dana Jansens
768c3cd4a9 more namespacing with Rr* 2003-06-21 02:30:15 +00:00
Dana Jansens
33ec08ea22 more namespacing with Rr* 2003-06-21 02:30:14 +00:00
Dana Jansens
c100b72c5d more namespacing with Rr* 2003-06-21 02:26:50 +00:00
Dana Jansens
dbe2851b91 more namespacing to Rr* 2003-06-21 02:15:13 +00:00
Dana Jansens
092616de9a rename pixel32/16 to RrPixel32/16 2003-06-21 02:00:42 +00:00
Dana Jansens
bd59576748 rename color_rgb to RrColor 2003-06-21 01:56:14 +00:00
Dana Jansens
b1f5555218 put the render theme into a struct 2003-06-21 01:53:26 +00:00
Dana Jansens
3f32dfa87e this is going to break the kernel/ building.
lots of modifications to the render API, prefixing everything, making proper
names for everything. the structures are not hidden/opaque yet, but the naming scheme of the public API works much better now.
2003-06-20 07:58:51 +00:00
Dana Jansens
49268650b4 oops typo 2003-06-20 05:45:55 +00:00
Dana Jansens
62240d2b0f take the bevel width into account for the width available 2003-06-20 02:39:20 +00:00
Dana Jansens
cd12a2eae5 simply the render interface by not requiring the setting of all the areas. only take a w and h in paint(). best font layout ever. 2003-06-20 02:17:23 +00:00
Dana Jansens
ad30e7092b slight optimizations, and make the last 4 gradients work properly 2003-06-20 00:46:53 +00:00
Dana Jansens
fd52dc5d35 center text vertically. use the font's height because all that space is needed for some charcters 2003-06-20 00:38:25 +00:00
Dana Jansens
6e93be1d2e remove non-planar surfaces 2003-06-20 00:05:51 +00:00
Dana Jansens
9867ce2367 more unique error for unhandles image bit depths, remove debug prints 2003-06-03 05:07:39 +00:00
Dana Jansens
c4e60e4ad2 handle increase_depth on 1bpp images 2003-06-03 05:04:12 +00:00
Derek Foreman
b8f05e5388 gl.h shouldn't be required when not enabling gl 2003-05-25 18:36:19 +00:00
Derek Foreman
db705f406c all grads done 2003-05-25 03:36:12 +00:00
Derek Foreman
f9505b23b7 pipecross 2003-05-25 03:17:29 +00:00
Derek Foreman
d6652d0a90 rectangle and diagonal grads yay
gl > *
2003-05-25 02:46:35 +00:00
Derek Foreman
48a75b80d6 gl is starting. it's gonna get really ugly really fast, folks 2003-05-25 00:42:02 +00:00
Dana Jansens
f54e8c9ba0 add --enable-gl support, and put the flags/libs in the appropriate makefiles 2003-05-23 05:30:00 +00:00
Derek Foreman
99c7fa7260 fix cut'n'paste bug 2003-05-22 23:26:05 +00:00
Derek Foreman
c00accbd25 removed a piece of code I suspect has never been run
this is for XServers that report less than 8 bpp default visual and support
8bpp or higher visuals

hopefully nothing is really that stupid.  we'll see.
2003-05-22 20:53:18 +00:00
Derek Foreman
911d7251f8 keep XVisualInfo around in preparation for opengl stuff 2003-05-22 19:48:11 +00:00
Dana Jansens
955d9d8e30 optimize it a bit 2003-05-21 22:19:01 +00:00
Dana Jansens
9b2a67d044 pass the number of bytes, not characters to the xft draw functions 2003-05-21 22:17:36 +00:00
Dana Jansens
e4aa5c6905 allocate the border_color's gc 2003-05-21 02:59:02 +00:00
Dana Jansens
9e33652f71 put the devation back how it used to be, it aws definately no better.. 2003-05-20 23:53:32 +00:00
Derek Foreman
76425437d4 of by one error in pyramid, rectangle, and crosspipe 2003-05-20 19:07:27 +00:00
Dana Jansens
0de48102a4 remove debug prints 2003-05-20 16:49:46 +00:00
Dana Jansens
895cd9f43d reindent the file....
but while i'm at it:
  - add support for bevels/borders on solid textures.
  - reverse the colors in the rectangle gradient, the pipecross and pyramid
    ones may need to be reversed as well.
2003-05-20 07:30:27 +00:00
Dana Jansens
13f701bdb1 remove the elliptic gradient type.
add bevel light/dark colors for solid textures with bevels
2003-05-20 07:28:31 +00:00
Dana Jansens
97b22bd27b use the rectangle gradient when the theme asks for elipse 2003-05-20 07:27:23 +00:00
Derek Foreman
ad4c3aad45 PipeCross 2003-05-18 23:31:13 +00:00
Derek Foreman
b24e6fbfa1 there's the rect grad. now stop bugging me :( 2003-05-18 23:27:31 +00:00
Derek Foreman
e328dc2f60 is that a rectangle grad? damned if I know 2003-05-18 23:15:37 +00:00