Mikael Magnusson
d47d5a2801
When icons had a very small aspect ratio, we crashed, don't.
2008-04-15 17:59:22 +02:00
Mikael Magnusson
232cbb9eb7
Don't leak auto-scaled RGBA textures.
2008-03-05 20:12:45 +01:00
Dana Jansens
3f62e77dea
don't use \n at the end of g_message strings
2008-02-14 15:10:14 -05:00
Dana Jansens
66a897d9b2
don't reference free'd memory, and don't leak memory if the image cache is not saving any resized pictures
2008-02-14 15:10:14 -05:00
Dana Jansens
e7a86f5fe4
use g_message not g_print so it can go to the log
2008-02-14 15:10:14 -05:00
Dana Jansens
38c96413b3
pre-calc the sum of a picture added to an RrImage rather than calculating it every time
2008-02-14 15:10:14 -05:00
Dana Jansens
a2e3026d8a
add a bunch of comments for images and image caches. and make the number of resized pictures saved in an image tunable per-icon cache.
2008-02-14 15:10:14 -05:00
Dana Jansens
35b36fc377
when resizing images, pick a source image with the same aspect ratio if possible
2008-02-14 15:10:14 -05:00
Dana Jansens
4c7cc1cfa6
Introducing the icon cache.
...
If an icon is the same as one in the cache, then it uses that one.
icons of different sizes (from the same client) are linked together into
one, and resizes of icons are cached and linked to all the various sizes.
so you only need one icon in memory for all your terminals now. ya!
2008-02-14 15:09:24 -05:00
Dana Jansens
b92cb6a08a
remove an XXX comment, the sanity check seems to have worked out fine.
2008-02-14 19:40:02 +01:00
Mikael Magnusson
77baf26a7f
remove trailing whitespace
2007-07-17 02:48:16 +02:00
Mikael Magnusson
1188d9b0f6
don't need to &0xff
2007-05-29 03:46:38 +00:00
Dana Jansens
28ad33fd5f
brackets ftw. opacity for rgba's works.
2007-05-29 03:36:12 +00:00
Dana Jansens
9df3e07b73
it doesn't work but its something
2007-05-29 03:31:25 +00:00
Dana Jansens
211cc4449d
center argb textures (icons for eg.) within the area given if they are not the same shape
2007-05-26 17:35:17 +00:00
Dana Jansens
2442cdfd85
1) translate all of openbox's output
...
2) update copyrights.
3) make release. ok that part not quite yet.
2007-04-23 17:56:35 +00:00
Mikael Magnusson
d3d4aa2987
80 cols
2006-11-15 21:12:06 +00:00
Mikael Magnusson
d9f14c1d01
update copyright step 2
2006-08-22 16:44:18 +00:00
Mikael Magnusson
005eb35ee8
fix some warnings from -Wall
2006-08-19 05:05:36 +00:00
Mikael Magnusson
a908e04818
try another scaling algo for the icons
2006-03-16 23:53:11 +00:00
Mikael Magnusson
31527192c8
finally fix broken gimp window icons
2006-03-05 23:23:55 +00:00
Dana Jansens
06202e2bad
dont scale images to 0 px wide or tall
2003-11-11 12:04:47 +00:00
Dana Jansens
740c5b2a20
consistant glib type usage
2003-10-15 03:59:35 +00:00
Dana Jansens
16f46c296d
no tabs
2003-09-17 07:44:49 +00:00
Dana Jansens
c4e4760c41
add copyright headers, adjust --version output to include copyright, and --help output to not include version output.
2003-09-17 07:32:52 +00:00
Dana Jansens
55ed757c5f
new scaling, based on the Bresenham algorithm
2003-09-04 06:23:27 +00:00
Dana Jansens
58be655de3
remove rependancy on geom.h from the kernel, provide what is used in its own geom.h
2003-07-10 04:31:34 +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
092616de9a
rename pixel32/16 to RrPixel32/16
2003-06-21 02:00:42 +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
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
a18c1697b1
make icons use pixel32 data, and image_draw takes pixel32 data.
...
client.c gets pixmap icons as a backup to netwm ones, and they are converted into pixel32 data.
2003-05-18 23:06:11 +00:00
Derek Foreman
b9ecd5bf25
rename poorly named offsets
2003-05-18 19:23:26 +00:00
Dana Jansens
f26f23de50
all my changes while i was offline.
...
better alt-tabbing. better transient handling. i dont even know. lots of fucking cool shit so WATCH the FUCK OUT.
2003-05-09 16:57:17 +00:00
Dana Jansens
a081582e3a
fix window icon rendering, was using incorrect size.
2003-04-27 17:08:40 +00:00
Derek Foreman
c0568cd7ef
rgba icon rendering
2003-03-26 05:38:13 +00:00