mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-18 23:24:06 +00:00
fix
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@187 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -5,22 +5,22 @@
|
||||
#include "carbon.h"
|
||||
|
||||
MwLL MwLLCreate(MwLL parent, int x, int y, int width, int height) {
|
||||
// void* library;
|
||||
// MwLL r = malloc(sizeof(*r));
|
||||
// MwLLCreateCommon(r);
|
||||
//
|
||||
// library = dlopen("CarbonLib", RTLD_NOW);
|
||||
// if(library != NULL) {
|
||||
// dlclose(library);
|
||||
// r->backend = getQuickDrawBackend();
|
||||
// quickDrawBackendUserDataInit(r->userdata);
|
||||
// return r;
|
||||
// }
|
||||
//
|
||||
// printf("ERROR: No supported UI library found. (Searched for: CarbonLib)\n");
|
||||
// getchar();
|
||||
// raise(SIGTRAP);
|
||||
|
||||
// void* library;
|
||||
// MwLL r = malloc(sizeof(*r));
|
||||
// MwLLCreateCommon(r);
|
||||
//
|
||||
// library = dlopen("CarbonLib", RTLD_NOW);
|
||||
// if(library != NULL) {
|
||||
// dlclose(library);
|
||||
// r->backend = getQuickDrawBackend();
|
||||
// quickDrawBackendUserDataInit(r->userdata);
|
||||
// return r;
|
||||
// }
|
||||
//
|
||||
// printf("ERROR: No supported UI library found. (Searched for: CarbonLib)\n");
|
||||
// getchar();
|
||||
// raise(SIGTRAP);
|
||||
|
||||
return NULL;
|
||||
};
|
||||
|
||||
|
||||
@@ -389,5 +389,5 @@ void MwLLDetach(MwLL handle, MwPoint* point) {
|
||||
XReparentWindow(handle->display, handle->window, RootWindow(handle->display, DefaultScreen(handle->display)), x + point->x, y + point->y);
|
||||
|
||||
XMapWindow(handle->display, handle->window);
|
||||
XSetInputFocus(handle->display, handle->window, RevertToNone, CurrentTime);
|
||||
// XSetInputFocus(handle->display, handle->window, RevertToNone, CurrentTime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user