You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(134) |
Sep
(52) |
Oct
(13) |
Nov
(342) |
Dec
(163) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(62) |
Mar
(158) |
Apr
(38) |
May
(70) |
Jun
(58) |
Jul
(104) |
Aug
(207) |
Sep
(83) |
Oct
(122) |
Nov
(23) |
Dec
(49) |
| 2004 |
Jan
(119) |
Feb
(132) |
Mar
(192) |
Apr
(140) |
May
(77) |
Jun
(74) |
Jul
(201) |
Aug
(63) |
Sep
(102) |
Oct
(70) |
Nov
(173) |
Dec
(78) |
| 2005 |
Jan
(174) |
Feb
(197) |
Mar
(105) |
Apr
(59) |
May
(77) |
Jun
(43) |
Jul
(21) |
Aug
(18) |
Sep
(47) |
Oct
(37) |
Nov
(74) |
Dec
(50) |
| 2006 |
Jan
(44) |
Feb
(19) |
Mar
(32) |
Apr
(24) |
May
(31) |
Jun
(55) |
Jul
(138) |
Aug
(28) |
Sep
(12) |
Oct
(41) |
Nov
(58) |
Dec
(24) |
| 2007 |
Jan
(28) |
Feb
(14) |
Mar
(10) |
Apr
(68) |
May
(30) |
Jun
(26) |
Jul
(18) |
Aug
(63) |
Sep
(19) |
Oct
(29) |
Nov
(20) |
Dec
(10) |
| 2008 |
Jan
(38) |
Feb
(7) |
Mar
(37) |
Apr
(120) |
May
(41) |
Jun
(36) |
Jul
(39) |
Aug
(24) |
Sep
(28) |
Oct
(30) |
Nov
(36) |
Dec
(75) |
| 2009 |
Jan
(46) |
Feb
(22) |
Mar
(50) |
Apr
(70) |
May
(134) |
Jun
(105) |
Jul
(75) |
Aug
(34) |
Sep
(38) |
Oct
(34) |
Nov
(19) |
Dec
(20) |
| 2010 |
Jan
(11) |
Feb
(20) |
Mar
(65) |
Apr
(83) |
May
(104) |
Jun
(73) |
Jul
(78) |
Aug
(57) |
Sep
(43) |
Oct
(35) |
Nov
(9) |
Dec
(4) |
| 2011 |
Jan
(21) |
Feb
(11) |
Mar
(18) |
Apr
(10) |
May
(18) |
Jun
(15) |
Jul
(48) |
Aug
(25) |
Sep
(17) |
Oct
(45) |
Nov
(15) |
Dec
(12) |
| 2012 |
Jan
(21) |
Feb
(9) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
(10) |
Sep
(12) |
Oct
(1) |
Nov
(28) |
Dec
(5) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2016 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
1
|
2
|
|
3
|
4
|
5
(5) |
6
(1) |
7
|
8
|
9
|
|
10
(2) |
11
(1) |
12
|
13
|
14
|
15
|
16
(7) |
|
17
|
18
|
19
(1) |
20
(1) |
21
(2) |
22
(1) |
23
|
|
24
|
25
|
26
|
27
|
28
|
29
|
30
|
|
31
|
|
|
|
|
|
|
|
From: Kevin G. <kev...@us...> - 2005-07-06 19:46:47
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv585/src/native/linux Modified Files: org_lwjgl_opengl_Display.c Log Message: Added Linux native code for window icon setting. Index: org_lwjgl_opengl_Display.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_opengl_Display.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- org_lwjgl_opengl_Display.c 5 Jul 2005 21:46:27 -0000 1.30 +++ org_lwjgl_opengl_Display.c 6 Jul 2005 19:46:35 -0000 1.31 @@ -78,6 +78,9 @@ static window_mode current_window_mode; static int current_height; static int current_width; +static int current_depth; + +static Visual *current_visual; static bool input_released; @@ -404,6 +407,10 @@ attribs.override_redirect = True; } win = XCreateWindow(getDisplay(), root_win, x, y, width, height, 0, vis_info->depth, InputOutput, vis_info->visual, attribmask, &attribs); + + current_depth = vis_info->depth; + current_visual = vis_info->visual; + XFree(vis_info); if (!checkXError(env, getDisplay())) { XFreeColormap(getDisplay(), cmap); @@ -569,10 +576,61 @@ jawt.Unlock(env); } +int setIcon(char *data,int width,int height) { + XWMHints* win_hints; + int x = 0; + int y = 5; + char r,g,b,a; + + int depth = 4; + + for (y=0;y<height;y++) { + for (x=0;x<width;x++) { + r = data[(x*4)+(y*width*4)]; + g = data[(x*4)+(y*width*4)+1]; + b = data[(x*4)+(y*width*4)+2]; + a = data[(x*4)+(y*width*4)+3]; + + data[(x*depth)+(y*width*depth)] = b; // blue + data[(x*depth)+(y*width*depth)+1] = g; // green + data[(x*depth)+(y*width*depth)+2] = r; + data[(x*depth)+(y*width*depth)+3] = a; + } + } + + Pixmap icon_pixmap = XCreatePixmap(getDisplay(), getCurrentWindow(), width, height, current_depth); + + XImage *image = XCreateImage(getDisplay(), current_visual, current_depth, ZPixmap, 0, data, width, height, 32, 0); + + GC gc = XCreateGC(getDisplay(), icon_pixmap, 0, NULL); + + XPutImage(getDisplay(), icon_pixmap, gc, image, 0, 0, 0, 0, width, height); + + win_hints = XAllocWMHints(); + if (!win_hints) { + return -1; + } + + win_hints->flags = IconPixmapHint; + win_hints->icon_pixmap = icon_pixmap; + + XSetWMHints(getDisplay(), getCurrentWindow(), win_hints); + XFree(win_hints); + XFlush(getDisplay()); + + return 0; +} + JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_LinuxDisplay_nSetWindowIcon (JNIEnv *env, jclass clazz, jobject iconBuffer) { + char *imgData = (char *)(*env)->GetDirectBufferAddress(env, iconBuffer); + if (setIcon(imgData,32,32) == 0) + { + return 1; + } + return 0; } |