Commit 158d6caa authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winemac: Rename imeData / data members and variables to himc.

parent 020b6e09
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
NSRect frameAtResizeStart; NSRect frameAtResizeStart;
BOOL resizingFromLeft, resizingFromTop; BOOL resizingFromLeft, resizingFromTop;
void* imeData; void* himc;
BOOL commandDone; BOOL commandDone;
NSSize savedContentMinSize; NSSize savedContentMinSize;
......
...@@ -403,7 +403,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi ...@@ -403,7 +403,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
@property (nonatomic) CGFloat colorKeyRed, colorKeyGreen, colorKeyBlue; @property (nonatomic) CGFloat colorKeyRed, colorKeyGreen, colorKeyBlue;
@property (nonatomic) BOOL usePerPixelAlpha; @property (nonatomic) BOOL usePerPixelAlpha;
@property (assign, nonatomic) void* imeData; @property (assign, nonatomic) void* himc;
@property (nonatomic) BOOL commandDone; @property (nonatomic) BOOL commandDone;
@property (readonly, copy, nonatomic) NSArray* childWineWindows; @property (readonly, copy, nonatomic) NSArray* childWineWindows;
...@@ -714,7 +714,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi ...@@ -714,7 +714,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
WineWindow* window = (WineWindow*)[self window]; WineWindow* window = (WineWindow*)[self window];
event = macdrv_create_event(IM_SET_TEXT, window); event = macdrv_create_event(IM_SET_TEXT, window);
event->im_set_text.data = [window imeData]; event->im_set_text.himc = [window himc];
event->im_set_text.text = (CFStringRef)[text copy]; event->im_set_text.text = (CFStringRef)[text copy];
event->im_set_text.complete = TRUE; event->im_set_text.complete = TRUE;
...@@ -797,7 +797,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi ...@@ -797,7 +797,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
markedTextSelection.location += replacementRange.location; markedTextSelection.location += replacementRange.location;
event = macdrv_create_event(IM_SET_TEXT, window); event = macdrv_create_event(IM_SET_TEXT, window);
event->im_set_text.data = [window imeData]; event->im_set_text.himc = [window himc];
event->im_set_text.text = (CFStringRef)[[markedText string] copy]; event->im_set_text.text = (CFStringRef)[[markedText string] copy];
event->im_set_text.complete = FALSE; event->im_set_text.complete = FALSE;
event->im_set_text.cursor_pos = markedTextSelection.location + markedTextSelection.length; event->im_set_text.cursor_pos = markedTextSelection.location + markedTextSelection.length;
...@@ -860,7 +860,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi ...@@ -860,7 +860,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
query = macdrv_create_query(); query = macdrv_create_query();
query->type = QUERY_IME_CHAR_RECT; query->type = QUERY_IME_CHAR_RECT;
query->window = (macdrv_window)[window retain]; query->window = (macdrv_window)[window retain];
query->ime_char_rect.data = [window imeData]; query->ime_char_rect.himc = [window himc];
query->ime_char_rect.range = CFRangeMake(aRange.location, aRange.length); query->ime_char_rect.range = CFRangeMake(aRange.location, aRange.length);
if ([window.queue query:query timeout:0.3 flags:WineQueryNoPreemptWait]) if ([window.queue query:query timeout:0.3 flags:WineQueryNoPreemptWait])
...@@ -947,7 +947,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi ...@@ -947,7 +947,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
@synthesize shapeChangedSinceLastDraw; @synthesize shapeChangedSinceLastDraw;
@synthesize colorKeyed, colorKeyRed, colorKeyGreen, colorKeyBlue; @synthesize colorKeyed, colorKeyRed, colorKeyGreen, colorKeyBlue;
@synthesize usePerPixelAlpha; @synthesize usePerPixelAlpha;
@synthesize imeData, commandDone; @synthesize himc, commandDone;
+ (WineWindow*) createWindowWithFeatures:(const struct macdrv_window_features*)wf + (WineWindow*) createWindowWithFeatures:(const struct macdrv_window_features*)wf
windowFrame:(NSRect)window_frame windowFrame:(NSRect)window_frame
...@@ -3903,7 +3903,7 @@ uint32_t macdrv_window_background_color(void) ...@@ -3903,7 +3903,7 @@ uint32_t macdrv_window_background_color(void)
/*********************************************************************** /***********************************************************************
* macdrv_send_text_input_event * macdrv_send_text_input_event
*/ */
void macdrv_send_text_input_event(int pressed, unsigned int flags, int repeat, int keyc, void* data, int* done) void macdrv_send_text_input_event(int pressed, unsigned int flags, int repeat, int keyc, void* himc, int* done)
{ {
OnMainThreadAsync(^{ OnMainThreadAsync(^{
BOOL ret; BOOL ret;
...@@ -3922,7 +3922,7 @@ void macdrv_send_text_input_event(int pressed, unsigned int flags, int repeat, i ...@@ -3922,7 +3922,7 @@ void macdrv_send_text_input_event(int pressed, unsigned int flags, int repeat, i
CGEventRef c; CGEventRef c;
NSEvent* event; NSEvent* event;
window.imeData = data; window.himc = himc;
fix_device_modifiers_by_generic(&localFlags); fix_device_modifiers_by_generic(&localFlags);
// An NSEvent created with +keyEventWithType:... is internally marked // An NSEvent created with +keyEventWithType:... is internally marked
......
...@@ -154,7 +154,7 @@ static void macdrv_im_set_text(const macdrv_event *event) ...@@ -154,7 +154,7 @@ static void macdrv_im_set_text(const macdrv_event *event)
struct ime_set_text_params *params; struct ime_set_text_params *params;
CFIndex length = 0, size; CFIndex length = 0, size;
TRACE_(imm)("win %p/%p himc %p text %s complete %u\n", hwnd, event->window, event->im_set_text.data, TRACE_(imm)("win %p/%p himc %p text %s complete %u\n", hwnd, event->window, event->im_set_text.himc,
debugstr_cf(event->im_set_text.text), event->im_set_text.complete); debugstr_cf(event->im_set_text.text), event->im_set_text.complete);
if (event->im_set_text.text) if (event->im_set_text.text)
...@@ -163,7 +163,7 @@ static void macdrv_im_set_text(const macdrv_event *event) ...@@ -163,7 +163,7 @@ static void macdrv_im_set_text(const macdrv_event *event)
size = offsetof(struct ime_set_text_params, text[length]); size = offsetof(struct ime_set_text_params, text[length]);
if (!(params = malloc(size))) return; if (!(params = malloc(size))) return;
params->hwnd = HandleToUlong(hwnd); params->hwnd = HandleToUlong(hwnd);
params->data = (UINT_PTR)event->im_set_text.data; params->himc = (UINT_PTR)event->im_set_text.himc;
params->cursor_pos = event->im_set_text.cursor_pos; params->cursor_pos = event->im_set_text.cursor_pos;
params->complete = event->im_set_text.complete; params->complete = event->im_set_text.complete;
...@@ -287,7 +287,7 @@ static BOOL query_drag_operation(macdrv_query *query) ...@@ -287,7 +287,7 @@ static BOOL query_drag_operation(macdrv_query *query)
BOOL query_ime_char_rect(macdrv_query* query) BOOL query_ime_char_rect(macdrv_query* query)
{ {
HWND hwnd = macdrv_get_window_hwnd(query->window); HWND hwnd = macdrv_get_window_hwnd(query->window);
void *himc = query->ime_char_rect.data; void *himc = query->ime_char_rect.himc;
CFRange *range = &query->ime_char_rect.range; CFRange *range = &query->ime_char_rect.range;
CGRect *rect = &query->ime_char_rect.rect; CGRect *rect = &query->ime_char_rect.rect;
struct ime_query_char_rect_result result = { .location = 0 }; struct ime_query_char_rect_result result = { .location = 0 };
...@@ -298,7 +298,7 @@ BOOL query_ime_char_rect(macdrv_query* query) ...@@ -298,7 +298,7 @@ BOOL query_ime_char_rect(macdrv_query* query)
range->length); range->length);
params.hwnd = HandleToUlong(hwnd); params.hwnd = HandleToUlong(hwnd);
params.data = (UINT_PTR)himc; params.himc = (UINT_PTR)himc;
params.result = (UINT_PTR)&result; params.result = (UINT_PTR)&result;
params.location = range->location; params.location = range->location;
params.length = range->length; params.length = range->length;
......
...@@ -1321,7 +1321,7 @@ NTSTATUS WINAPI macdrv_ime_set_text(void *arg, ULONG size) ...@@ -1321,7 +1321,7 @@ NTSTATUS WINAPI macdrv_ime_set_text(void *arg, ULONG size)
{ {
struct ime_set_text_params *params = arg; struct ime_set_text_params *params = arg;
ULONG length = (size - offsetof(struct ime_set_text_params, text)) / sizeof(WCHAR); ULONG length = (size - offsetof(struct ime_set_text_params, text)) / sizeof(WCHAR);
void *himc = param_ptr(params->data); void *himc = param_ptr(params->himc);
HWND hwnd = UlongToHandle(params->hwnd); HWND hwnd = UlongToHandle(params->hwnd);
if (!himc) himc = RealIMC(FROM_MACDRV); if (!himc) himc = RealIMC(FROM_MACDRV);
...@@ -1365,7 +1365,7 @@ NTSTATUS WINAPI macdrv_ime_query_char_rect(void *arg, ULONG size) ...@@ -1365,7 +1365,7 @@ NTSTATUS WINAPI macdrv_ime_query_char_rect(void *arg, ULONG size)
{ {
struct ime_query_char_rect_params *params = arg; struct ime_query_char_rect_params *params = arg;
struct ime_query_char_rect_result *result = param_ptr(params->result); struct ime_query_char_rect_result *result = param_ptr(params->result);
void *himc = param_ptr(params->data); void *himc = param_ptr(params->himc);
IMECHARPOSITION charpos; IMECHARPOSITION charpos;
BOOL ret = FALSE; BOOL ret = FALSE;
......
...@@ -378,7 +378,7 @@ typedef struct macdrv_event { ...@@ -378,7 +378,7 @@ typedef struct macdrv_event {
unsigned long time_ms; unsigned long time_ms;
} hotkey_press; } hotkey_press;
struct { struct {
void *data; void *himc;
CFStringRef text; /* new text or NULL if just completing existing text */ CFStringRef text; /* new text or NULL if just completing existing text */
unsigned int cursor_pos; unsigned int cursor_pos;
unsigned int complete; /* is completing text? */ unsigned int complete; /* is completing text? */
...@@ -487,7 +487,7 @@ typedef struct macdrv_query { ...@@ -487,7 +487,7 @@ typedef struct macdrv_query {
CFTypeRef pasteboard; CFTypeRef pasteboard;
} drag_operation; } drag_operation;
struct { struct {
void *data; void *himc;
CFRange range; CFRange range;
CGRect rect; CGRect rect;
} ime_char_rect; } ime_char_rect;
......
...@@ -177,7 +177,7 @@ struct ime_query_char_rect_params ...@@ -177,7 +177,7 @@ struct ime_query_char_rect_params
{ {
UINT32 hwnd; UINT32 hwnd;
UINT32 location; UINT32 location;
UINT64 data; UINT64 himc;
UINT64 result; /* FIXME: Use NtCallbackReturn instead */ UINT64 result; /* FIXME: Use NtCallbackReturn instead */
UINT32 length; UINT32 length;
}; };
...@@ -187,7 +187,7 @@ struct ime_set_text_params ...@@ -187,7 +187,7 @@ struct ime_set_text_params
{ {
UINT32 hwnd; UINT32 hwnd;
UINT32 cursor_pos; UINT32 cursor_pos;
UINT64 data; UINT64 himc;
UINT32 complete; UINT32 complete;
WCHAR text[1]; WCHAR text[1];
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment