mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-08 14:56:12 -04:00
Split up misc folder into misc and doc folder
This commit is contained in:
parent
9bb6015a8c
commit
3ce5b1145a
@ -16,7 +16,7 @@ It **does not** work with 'modern/premium' Minecraft servers.
|
|||||||
|
|
||||||
#### Requirements
|
#### Requirements
|
||||||
* Windows: 2000 or later. (Windows 98 with KernelEx also *technically* works)
|
* Windows: 2000 or later. (Windows 98 with KernelEx also *technically* works)
|
||||||
* OSX: OSX 10.5 or later. (Can be compiled to work with 10.4 though)
|
* macOS: macOS 10.5 or later. (Can be compiled to work with 10.4 though)
|
||||||
* Linux: libcurl and libopenal.
|
* Linux: libcurl and libopenal.
|
||||||
|
|
||||||
#### Instructions
|
#### Instructions
|
||||||
|
21
src/Window.c
21
src/Window.c
@ -1136,6 +1136,18 @@ void Window_Init(void) {
|
|||||||
DisplayInfo.DpiY = 1;
|
DisplayInfo.DpiY = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CC_BUILD_X11ICON
|
||||||
|
static void ApplyIcon(void) {
|
||||||
|
Atom net_wm_icon = XInternAtom(win_display, "_NET_WM_ICON", false);
|
||||||
|
Atom xa_cardinal = XInternAtom(win_display, "CARDINAL", false);
|
||||||
|
extern const long CCIcon_Data[];
|
||||||
|
extern const int CCIcon_Size;
|
||||||
|
XChangeProperty(win_display, win_handle, net_wm_icon, xa_cardinal, 32, PropModeReplace, CCIcon_Data, CCIcon_Size);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
static void ApplyIcon(void) { }
|
||||||
|
#endif
|
||||||
|
|
||||||
void Window_Create(int width, int height) {
|
void Window_Create(int width, int height) {
|
||||||
XSetWindowAttributes attributes = { 0 };
|
XSetWindowAttributes attributes = { 0 };
|
||||||
XSizeHints hints = { 0 };
|
XSizeHints hints = { 0 };
|
||||||
@ -1192,14 +1204,7 @@ void Window_Create(int width, int height) {
|
|||||||
hint.res_name = GAME_APP_TITLE;
|
hint.res_name = GAME_APP_TITLE;
|
||||||
hint.res_class = GAME_APP_TITLE;
|
hint.res_class = GAME_APP_TITLE;
|
||||||
XSetClassHint(win_display, win_handle, &hint);
|
XSetClassHint(win_display, win_handle, &hint);
|
||||||
|
ApplyIcon();
|
||||||
#ifdef CC_BUILD_X11ICON
|
|
||||||
Atom net_wm_icon = XInternAtom(win_display, "_NET_WM_ICON", false);
|
|
||||||
Atom xa_cardinal = XInternAtom(win_display, "CARDINAL", false);
|
|
||||||
extern const long CCIcon_Data[];
|
|
||||||
extern const int CCIcon_Size;
|
|
||||||
XChangeProperty(win_display, win_handle, net_wm_icon, xa_cardinal, 32, PropModeReplace, CCIcon_Data, CCIcon_Size);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window_SetTitle(const String* title) {
|
void Window_SetTitle(const String* title) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user