Commit 69d35a01 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

winemac.drv: Use BOOL type where appropriate.

parent 82d5f36c
......@@ -62,23 +62,23 @@ static void get_cocoa_window_features(struct macdrv_win_data *data,
if ((style & WS_CAPTION) == WS_CAPTION && !(ex_style & WS_EX_LAYERED))
{
wf->shadow = 1;
wf->shadow = TRUE;
if (!data->shaped)
{
wf->title_bar = 1;
if (style & WS_SYSMENU) wf->close_button = 1;
if (style & WS_MINIMIZEBOX) wf->minimize_button = 1;
if (style & WS_MAXIMIZEBOX) wf->resizable = 1;
if (ex_style & WS_EX_TOOLWINDOW) wf->utility = 1;
wf->title_bar = TRUE;
if (style & WS_SYSMENU) wf->close_button = TRUE;
if (style & WS_MINIMIZEBOX) wf->minimize_button = TRUE;
if (style & WS_MAXIMIZEBOX) wf->resizable = TRUE;
if (ex_style & WS_EX_TOOLWINDOW) wf->utility = TRUE;
}
}
if (ex_style & WS_EX_DLGMODALFRAME) wf->shadow = 1;
if (ex_style & WS_EX_DLGMODALFRAME) wf->shadow = TRUE;
else if (style & WS_THICKFRAME)
{
wf->shadow = 1;
if (!data->shaped) wf->resizable = 1;
wf->shadow = TRUE;
if (!data->shaped) wf->resizable = TRUE;
}
else if ((style & (WS_DLGFRAME|WS_BORDER)) == WS_DLGFRAME) wf->shadow = 1;
else if ((style & (WS_DLGFRAME|WS_BORDER)) == WS_DLGFRAME) wf->shadow = TRUE;
}
......
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