1993-09-04 10:09:32 +00:00
|
|
|
/*
|
|
|
|
* GDI brush objects
|
|
|
|
*
|
1995-01-09 18:21:16 +00:00
|
|
|
* Copyright 1993, 1994 Alexandre Julliard
|
2002-03-09 23:29:33 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1995-01-09 18:21:16 +00:00
|
|
|
*/
|
1993-09-04 10:09:32 +00:00
|
|
|
|
2001-07-18 21:04:23 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include <stdarg.h>
|
1999-02-28 12:27:56 +00:00
|
|
|
#include <string.h>
|
2001-07-18 21:04:23 +00:00
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include "windef.h"
|
1999-02-17 13:51:06 +00:00
|
|
|
#include "winbase.h"
|
2001-07-18 21:04:23 +00:00
|
|
|
#include "wingdi.h"
|
|
|
|
#include "wine/wingdi16.h"
|
2002-11-21 21:50:04 +00:00
|
|
|
#include "wownt32.h"
|
2004-01-15 00:35:38 +00:00
|
|
|
#include "gdi_private.h"
|
2002-03-09 23:29:33 +00:00
|
|
|
#include "wine/debug.h"
|
1993-09-04 10:09:32 +00:00
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(gdi);
|
1999-04-19 14:56:29 +00:00
|
|
|
|
2002-05-31 18:43:22 +00:00
|
|
|
/* GDI logical brush object */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
GDIOBJHDR header;
|
|
|
|
LOGBRUSH logbrush;
|
|
|
|
} BRUSHOBJ;
|
|
|
|
|
|
|
|
#define NB_HATCH_STYLES 6
|
|
|
|
|
2007-09-27 18:14:13 +00:00
|
|
|
static HGDIOBJ BRUSH_SelectObject( HGDIOBJ handle, HDC hdc );
|
2002-05-31 18:43:22 +00:00
|
|
|
static INT BRUSH_GetObject( HGDIOBJ handle, void *obj, INT count, LPVOID buffer );
|
|
|
|
static BOOL BRUSH_DeleteObject( HGDIOBJ handle, void *obj );
|
|
|
|
|
|
|
|
static const struct gdi_obj_funcs brush_funcs =
|
|
|
|
{
|
|
|
|
BRUSH_SelectObject, /* pSelectObject */
|
|
|
|
BRUSH_GetObject, /* pGetObjectA */
|
|
|
|
BRUSH_GetObject, /* pGetObjectW */
|
|
|
|
NULL, /* pUnrealizeObject */
|
|
|
|
BRUSH_DeleteObject /* pDeleteObject */
|
|
|
|
};
|
|
|
|
|
2007-04-29 12:17:26 +00:00
|
|
|
static HGLOBAL16 dib_copy(const BITMAPINFO *info, UINT coloruse)
|
1999-10-23 18:56:30 +00:00
|
|
|
{
|
|
|
|
BITMAPINFO *newInfo;
|
|
|
|
HGLOBAL16 hmem;
|
|
|
|
INT size;
|
|
|
|
|
2008-07-29 10:49:58 +00:00
|
|
|
if (info->bmiHeader.biCompression != BI_RGB && info->bmiHeader.biCompression != BI_BITFIELDS)
|
1999-10-23 18:56:30 +00:00
|
|
|
size = info->bmiHeader.biSizeImage;
|
|
|
|
else
|
|
|
|
size = DIB_GetDIBImageBytes(info->bmiHeader.biWidth,
|
|
|
|
info->bmiHeader.biHeight,
|
|
|
|
info->bmiHeader.biBitCount);
|
2008-05-02 11:35:40 +00:00
|
|
|
size += bitmap_info_size( info, coloruse );
|
1999-10-23 18:56:30 +00:00
|
|
|
|
|
|
|
if (!(hmem = GlobalAlloc16( GMEM_MOVEABLE, size )))
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
newInfo = (BITMAPINFO *) GlobalLock16( hmem );
|
|
|
|
memcpy( newInfo, info, size );
|
|
|
|
GlobalUnlock16( hmem );
|
|
|
|
return hmem;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1993-09-04 10:09:32 +00:00
|
|
|
/***********************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* CreateBrushIndirect (GDI32.@)
|
1999-10-23 18:56:30 +00:00
|
|
|
*
|
2004-08-20 19:57:11 +00:00
|
|
|
* Create a logical brush with a given style, color or pattern.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* brush [I] Pointer to a LOGBRUSH structure describing the desired brush.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* A handle to the created brush, or a NULL handle if the brush cannot be
|
|
|
|
* created.
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* - The brush returned should be freed by the caller using DeleteObject()
|
|
|
|
* when it is no longer required.
|
|
|
|
* - Windows 95 and earlier cannot create brushes from bitmaps or DIBs larger
|
|
|
|
* than 8x8 pixels. If a larger bitmap is given, only a portion of the bitmap
|
|
|
|
* is used.
|
1993-09-04 10:09:32 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
HBRUSH WINAPI CreateBrushIndirect( const LOGBRUSH * brush )
|
1993-09-04 10:09:32 +00:00
|
|
|
{
|
2002-10-03 19:48:59 +00:00
|
|
|
BRUSHOBJ * ptr;
|
2000-08-19 21:38:55 +00:00
|
|
|
HBRUSH hbrush;
|
2002-10-03 19:48:59 +00:00
|
|
|
|
2002-11-21 21:50:04 +00:00
|
|
|
if (!(ptr = GDI_AllocObject( sizeof(BRUSHOBJ), BRUSH_MAGIC,
|
2004-08-20 19:57:11 +00:00
|
|
|
(HGDIOBJ *)&hbrush, &brush_funcs ))) return 0;
|
2002-10-03 19:48:59 +00:00
|
|
|
ptr->logbrush.lbStyle = brush->lbStyle;
|
|
|
|
ptr->logbrush.lbColor = brush->lbColor;
|
|
|
|
ptr->logbrush.lbHatch = brush->lbHatch;
|
|
|
|
|
|
|
|
switch (ptr->logbrush.lbStyle)
|
1999-10-23 18:56:30 +00:00
|
|
|
{
|
2002-10-03 19:48:59 +00:00
|
|
|
case BS_PATTERN8X8:
|
|
|
|
ptr->logbrush.lbStyle = BS_PATTERN;
|
|
|
|
/* fall through */
|
|
|
|
case BS_PATTERN:
|
2005-09-12 11:19:56 +00:00
|
|
|
ptr->logbrush.lbHatch = (ULONG_PTR)BITMAP_CopyBitmap( (HBITMAP) ptr->logbrush.lbHatch );
|
2002-10-03 19:48:59 +00:00
|
|
|
if (!ptr->logbrush.lbHatch) goto error;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case BS_DIBPATTERNPT:
|
|
|
|
ptr->logbrush.lbStyle = BS_DIBPATTERN;
|
2005-09-12 11:19:56 +00:00
|
|
|
ptr->logbrush.lbHatch = (ULONG_PTR)dib_copy( (BITMAPINFO *) ptr->logbrush.lbHatch,
|
|
|
|
ptr->logbrush.lbColor);
|
2002-10-03 19:48:59 +00:00
|
|
|
if (!ptr->logbrush.lbHatch) goto error;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case BS_DIBPATTERN8X8:
|
|
|
|
case BS_DIBPATTERN:
|
|
|
|
{
|
|
|
|
BITMAPINFO* bmi;
|
|
|
|
HGLOBAL h = (HGLOBAL)ptr->logbrush.lbHatch;
|
|
|
|
|
|
|
|
ptr->logbrush.lbStyle = BS_DIBPATTERN;
|
|
|
|
if (!(bmi = (BITMAPINFO *)GlobalLock( h ))) goto error;
|
|
|
|
ptr->logbrush.lbHatch = dib_copy( bmi, ptr->logbrush.lbColor);
|
|
|
|
GlobalUnlock( h );
|
|
|
|
if (!ptr->logbrush.lbHatch) goto error;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
default:
|
|
|
|
if(ptr->logbrush.lbStyle > BS_MONOPATTERN) goto error;
|
|
|
|
break;
|
1999-10-23 18:56:30 +00:00
|
|
|
}
|
2002-10-03 19:48:59 +00:00
|
|
|
|
|
|
|
GDI_ReleaseObj( hbrush );
|
2002-11-22 22:16:53 +00:00
|
|
|
TRACE("%p\n", hbrush);
|
1996-11-02 14:24:07 +00:00
|
|
|
return hbrush;
|
2002-10-03 19:48:59 +00:00
|
|
|
|
|
|
|
error:
|
|
|
|
GDI_FreeObject( hbrush, ptr );
|
|
|
|
return 0;
|
1996-11-02 14:24:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* CreateHatchBrush (GDI32.@)
|
2004-08-20 19:57:11 +00:00
|
|
|
*
|
|
|
|
* Create a logical brush with a hatched pattern.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* style [I] Direction of lines for the hatch pattern (HS_* values from "wingdi.h")
|
|
|
|
* color [I] Colour of the hatched pattern
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* A handle to the created brush, or a NULL handle if the brush cannot
|
|
|
|
* be created.
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* - This function uses CreateBrushIndirect() to create the brush.
|
|
|
|
* - The brush returned should be freed by the caller using DeleteObject()
|
|
|
|
* when it is no longer required.
|
1996-11-02 14:24:07 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
HBRUSH WINAPI CreateHatchBrush( INT style, COLORREF color )
|
1996-11-02 14:24:07 +00:00
|
|
|
{
|
1999-04-22 16:27:50 +00:00
|
|
|
LOGBRUSH logbrush;
|
|
|
|
|
2006-10-12 20:56:56 +00:00
|
|
|
TRACE("%d %06x\n", style, color );
|
1999-04-22 16:27:50 +00:00
|
|
|
|
|
|
|
logbrush.lbStyle = BS_HATCHED;
|
|
|
|
logbrush.lbColor = color;
|
|
|
|
logbrush.lbHatch = style;
|
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
return CreateBrushIndirect( &logbrush );
|
1996-11-02 14:24:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
1993-09-04 10:09:32 +00:00
|
|
|
/***********************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* CreatePatternBrush (GDI32.@)
|
2004-08-20 19:57:11 +00:00
|
|
|
*
|
|
|
|
* Create a logical brush with a pattern from a bitmap.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hbitmap [I] Bitmap containing pattern for the brush
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* A handle to the created brush, or a NULL handle if the brush cannot
|
|
|
|
* be created.
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* - This function uses CreateBrushIndirect() to create the brush.
|
|
|
|
* - The brush returned should be freed by the caller using DeleteObject()
|
|
|
|
* when it is no longer required.
|
1993-09-04 10:09:32 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
HBRUSH WINAPI CreatePatternBrush( HBITMAP hbitmap )
|
1993-09-04 10:09:32 +00:00
|
|
|
{
|
1999-02-26 11:11:13 +00:00
|
|
|
LOGBRUSH logbrush = { BS_PATTERN, 0, 0 };
|
2002-11-22 22:16:53 +00:00
|
|
|
TRACE("%p\n", hbitmap );
|
1993-09-04 10:09:32 +00:00
|
|
|
|
2002-10-03 19:48:59 +00:00
|
|
|
logbrush.lbHatch = (ULONG_PTR)hbitmap;
|
2002-05-31 18:43:22 +00:00
|
|
|
return CreateBrushIndirect( &logbrush );
|
1996-11-02 14:24:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
1993-09-04 10:09:32 +00:00
|
|
|
/***********************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* CreateDIBPatternBrush (GDI32.@)
|
1998-11-08 15:07:22 +00:00
|
|
|
*
|
2004-08-20 19:57:11 +00:00
|
|
|
* Create a logical brush with a pattern from a DIB.
|
1998-11-08 15:07:22 +00:00
|
|
|
*
|
2004-08-20 19:57:11 +00:00
|
|
|
* PARAMS
|
|
|
|
* hbitmap [I] Global object containing BITMAPINFO structure for the pattern
|
|
|
|
* coloruse [I] Specifies color format, if provided
|
1998-11-08 15:07:22 +00:00
|
|
|
*
|
|
|
|
* RETURNS
|
2004-08-20 19:57:11 +00:00
|
|
|
* A handle to the created brush, or a NULL handle if the brush cannot
|
|
|
|
* be created.
|
1998-11-08 15:07:22 +00:00
|
|
|
*
|
2004-08-20 19:57:11 +00:00
|
|
|
* NOTES
|
|
|
|
* - This function uses CreateBrushIndirect() to create the brush.
|
|
|
|
* - The brush returned should be freed by the caller using DeleteObject()
|
|
|
|
* when it is no longer required.
|
|
|
|
* - This function is for compatibility only. CreateDIBPatternBrushPt() should
|
|
|
|
* be used instead.
|
1993-09-04 10:09:32 +00:00
|
|
|
*/
|
2004-08-20 19:57:11 +00:00
|
|
|
HBRUSH WINAPI CreateDIBPatternBrush( HGLOBAL hbitmap, UINT coloruse )
|
1993-09-04 10:09:32 +00:00
|
|
|
{
|
1999-04-22 16:27:50 +00:00
|
|
|
LOGBRUSH logbrush;
|
2002-05-31 23:06:46 +00:00
|
|
|
|
2002-11-22 22:16:53 +00:00
|
|
|
TRACE("%p\n", hbitmap );
|
1993-09-04 10:09:32 +00:00
|
|
|
|
1999-04-22 16:27:50 +00:00
|
|
|
logbrush.lbStyle = BS_DIBPATTERN;
|
|
|
|
logbrush.lbColor = coloruse;
|
1993-09-04 10:09:32 +00:00
|
|
|
|
2005-09-12 11:19:56 +00:00
|
|
|
logbrush.lbHatch = (ULONG_PTR)hbitmap;
|
1993-09-04 10:09:32 +00:00
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
return CreateBrushIndirect( &logbrush );
|
1998-11-08 15:07:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* CreateDIBPatternBrushPt (GDI32.@)
|
1998-11-08 15:07:22 +00:00
|
|
|
*
|
2004-08-20 19:57:11 +00:00
|
|
|
* Create a logical brush with a pattern from a DIB.
|
1998-11-08 15:07:22 +00:00
|
|
|
*
|
2004-08-20 19:57:11 +00:00
|
|
|
* PARAMS
|
|
|
|
* data [I] Pointer to a BITMAPINFO structure and image data for the pattern
|
|
|
|
* coloruse [I] Specifies color format, if provided
|
1998-11-08 15:07:22 +00:00
|
|
|
*
|
2004-08-20 19:57:11 +00:00
|
|
|
* RETURNS
|
|
|
|
* A handle to the created brush, or a NULL handle if the brush cannot
|
|
|
|
* be created.
|
2002-05-31 23:06:46 +00:00
|
|
|
*
|
2004-08-20 19:57:11 +00:00
|
|
|
* NOTES
|
|
|
|
* - This function uses CreateBrushIndirect() to create the brush.
|
|
|
|
* - The brush returned should be freed by the caller using DeleteObject()
|
|
|
|
* when it is no longer required.
|
1998-11-08 15:07:22 +00:00
|
|
|
*/
|
2004-08-20 19:57:11 +00:00
|
|
|
HBRUSH WINAPI CreateDIBPatternBrushPt( const void* data, UINT coloruse )
|
1998-11-08 15:07:22 +00:00
|
|
|
{
|
2006-09-13 23:58:30 +00:00
|
|
|
const BITMAPINFO *info=(const BITMAPINFO*)data;
|
1999-05-08 12:50:36 +00:00
|
|
|
LOGBRUSH logbrush;
|
2002-05-31 23:06:46 +00:00
|
|
|
|
2003-11-13 20:49:54 +00:00
|
|
|
if (!data)
|
|
|
|
return NULL;
|
|
|
|
|
2006-10-12 20:56:56 +00:00
|
|
|
TRACE("%p %dx%d %dbpp\n", info, info->bmiHeader.biWidth,
|
1999-04-18 12:07:00 +00:00
|
|
|
info->bmiHeader.biHeight, info->bmiHeader.biBitCount);
|
1998-11-08 15:07:22 +00:00
|
|
|
|
1999-10-23 18:56:30 +00:00
|
|
|
logbrush.lbStyle = BS_DIBPATTERNPT;
|
1999-05-08 12:50:36 +00:00
|
|
|
logbrush.lbColor = coloruse;
|
2005-09-12 11:19:56 +00:00
|
|
|
logbrush.lbHatch = (ULONG_PTR)data;
|
1998-11-08 15:07:22 +00:00
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
return CreateBrushIndirect( &logbrush );
|
1993-09-04 10:09:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
1996-11-02 14:24:07 +00:00
|
|
|
/***********************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* CreateSolidBrush (GDI32.@)
|
2004-08-20 19:57:11 +00:00
|
|
|
*
|
|
|
|
* Create a logical brush consisting of a single colour.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* color [I] Colour to make the solid brush
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* A handle to the newly created brush, or a NULL handle if the brush cannot
|
|
|
|
* be created.
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* - This function uses CreateBrushIndirect() to create the brush.
|
|
|
|
* - The brush returned should be freed by the caller using DeleteObject()
|
|
|
|
* when it is no longer required.
|
1996-11-02 14:24:07 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
HBRUSH WINAPI CreateSolidBrush( COLORREF color )
|
1993-09-04 10:09:32 +00:00
|
|
|
{
|
1999-04-22 16:27:50 +00:00
|
|
|
LOGBRUSH logbrush;
|
|
|
|
|
2006-10-12 20:56:56 +00:00
|
|
|
TRACE("%06x\n", color );
|
1999-04-22 16:27:50 +00:00
|
|
|
|
|
|
|
logbrush.lbStyle = BS_SOLID;
|
|
|
|
logbrush.lbColor = color;
|
|
|
|
logbrush.lbHatch = 0;
|
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
return CreateBrushIndirect( &logbrush );
|
1993-09-04 10:09:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
Release 960728
Sun Jul 28 17:57:19 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [loader/task.c] [include/task.h]
Implemented SwitchStackTo()/SwitchStackBack().
* [include/wintypes.h] [loader/main.c]
Added __winelib variable to distinguish between emulator and
library at run-time. Later on, this should avoid some
recompilations when building Winelib.
* [windows/property.c]
Implemented Win32 functions for window properties.
Fri Jul 26 18:00:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu>
* [controls/listbox.c]
Implemented LBS_SORT style, WM_COMPAREITEM, and WM_DELETEITEM
messages.
* [controls/menu.c]
Call TranslateMessage() to enable shortcuts (on WM_CHAR).
* [include/cursoricon.h]
Moved #pragma pack(1) back to where it belongs.
* [objects/palette.c]
RealizeDefaultPalette() maps to system colors only.
Do not broadcast palette notifications when in TrueColor.
* [objects/color.c] [include/palette.h]
Miscellaneous optimizations. Had to fix several
"improvements" made to my patch for previous release.
* [objects/dib.c]
Reverse dib bits order for 24-bit SetDIBits().
* [objects/dc.c]
GetDeviceCaps() does not return RC_PALETTE when in TrueColor.
* [windows/scroll.c]
Scroll update region too.
* [windows/message.c]
Include QS_MOUSE into the event mask for nonclient mouse
message filter. Fixes problems with Word 6 freezing when
mouse hits nonclient area.
* [windows/win.c]
Allow top-level windows to be linked as HWND_TOP in CreateWindow().
* [windows/winpos.c] [windows/mdi.c]
Attempt to fix control menu duplication.
Fri Jul 26 09:49:35 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/drive.c]
GetDriveType32A(): return value for CDROM fixed.
* [files/file.c]
SearchPath* added.
* [if1632/gdi32.spec] [objects/brush.c]
SetBrushOrgEx() added.
* [loader/pe_resource.c]
If even loading the default entry fails, we just use the first
entry from the resource directory.
[loader/task.c]
SetSigHandler() stub added, Paradox 4.5 now starts up.
* [misc/comm.c] [include/windows.h] [if1632/kernel32.spec]
COMM functions updated to win32, not complete.
* [misc/lstr.c]
FormatMessageA partially implemented.
* [include/miscemu.h] [memory/selector.c]
[memory/global.c] [miscemu/dosmem.c]
DOS memory handling changed: 1MB preallocated block, real-mode
segment handling possible, SetSelectorBase into lower physical 1MB
possible.
* [miscemu/dpmi.c]
Real-mode segments changed, real-mode int 21,ax=6506 added.
AX=0x0303 added.
* [multimedia/time.c]
Fixed bug in killTimer.
* [objects/bitmap.c]
LoadImageA partially implemented.
Wed Jul 24 18:20:24 1996 Albrecht Kleine <kleine@ak.sax.de>
* [include/dde_mem.h][include/dde_proc.h]
[ipc/dde_atom.c][ipc/dde_proc.c][windows/message.c]
[ipc/generic_hash.h][library/miscstubs.c]
Changes for error free compilation using "--with-ipc":
replaced some names with *16-equivalent (e.g. MSG to MSG16),
modified prototype of function DDE_GlobalFree() .
* [objects/palette.c]
Added check for metafile-DC in GDISelectPalette(),
GDIRealizePalette(),RealizeDefaultPalette() and
IsDCCurrentPalette().
Tue Jul 23 22:46:53 1996 Andrew Lewycky <plewycky@oise.utoronto.ca>
* [controls/edit.c]
EDIT_WM_Create: Don't EDIT_EM_ReplaceSel if created with lParam = "",
fixes Winhelp.
* [windows/dialog.c]
DIALOG_CreateIndirect: Initialise dlgProc before creating children.
1996-07-28 18:50:11 +00:00
|
|
|
/***********************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* SetBrushOrgEx (GDI32.@)
|
2004-08-20 19:57:11 +00:00
|
|
|
*
|
|
|
|
* Set the brush origin for a device context.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* hdc [I] Device context to set the brush origin for
|
|
|
|
* x [I] New x origin
|
|
|
|
* y [I] Ney y origin
|
|
|
|
* oldorg [O] If non NULL, destination for previously set brush origin.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: TRUE. The origin is set to (x,y), and oldorg is updated if given.
|
Release 960728
Sun Jul 28 17:57:19 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [loader/task.c] [include/task.h]
Implemented SwitchStackTo()/SwitchStackBack().
* [include/wintypes.h] [loader/main.c]
Added __winelib variable to distinguish between emulator and
library at run-time. Later on, this should avoid some
recompilations when building Winelib.
* [windows/property.c]
Implemented Win32 functions for window properties.
Fri Jul 26 18:00:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu>
* [controls/listbox.c]
Implemented LBS_SORT style, WM_COMPAREITEM, and WM_DELETEITEM
messages.
* [controls/menu.c]
Call TranslateMessage() to enable shortcuts (on WM_CHAR).
* [include/cursoricon.h]
Moved #pragma pack(1) back to where it belongs.
* [objects/palette.c]
RealizeDefaultPalette() maps to system colors only.
Do not broadcast palette notifications when in TrueColor.
* [objects/color.c] [include/palette.h]
Miscellaneous optimizations. Had to fix several
"improvements" made to my patch for previous release.
* [objects/dib.c]
Reverse dib bits order for 24-bit SetDIBits().
* [objects/dc.c]
GetDeviceCaps() does not return RC_PALETTE when in TrueColor.
* [windows/scroll.c]
Scroll update region too.
* [windows/message.c]
Include QS_MOUSE into the event mask for nonclient mouse
message filter. Fixes problems with Word 6 freezing when
mouse hits nonclient area.
* [windows/win.c]
Allow top-level windows to be linked as HWND_TOP in CreateWindow().
* [windows/winpos.c] [windows/mdi.c]
Attempt to fix control menu duplication.
Fri Jul 26 09:49:35 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/drive.c]
GetDriveType32A(): return value for CDROM fixed.
* [files/file.c]
SearchPath* added.
* [if1632/gdi32.spec] [objects/brush.c]
SetBrushOrgEx() added.
* [loader/pe_resource.c]
If even loading the default entry fails, we just use the first
entry from the resource directory.
[loader/task.c]
SetSigHandler() stub added, Paradox 4.5 now starts up.
* [misc/comm.c] [include/windows.h] [if1632/kernel32.spec]
COMM functions updated to win32, not complete.
* [misc/lstr.c]
FormatMessageA partially implemented.
* [include/miscemu.h] [memory/selector.c]
[memory/global.c] [miscemu/dosmem.c]
DOS memory handling changed: 1MB preallocated block, real-mode
segment handling possible, SetSelectorBase into lower physical 1MB
possible.
* [miscemu/dpmi.c]
Real-mode segments changed, real-mode int 21,ax=6506 added.
AX=0x0303 added.
* [multimedia/time.c]
Fixed bug in killTimer.
* [objects/bitmap.c]
LoadImageA partially implemented.
Wed Jul 24 18:20:24 1996 Albrecht Kleine <kleine@ak.sax.de>
* [include/dde_mem.h][include/dde_proc.h]
[ipc/dde_atom.c][ipc/dde_proc.c][windows/message.c]
[ipc/generic_hash.h][library/miscstubs.c]
Changes for error free compilation using "--with-ipc":
replaced some names with *16-equivalent (e.g. MSG to MSG16),
modified prototype of function DDE_GlobalFree() .
* [objects/palette.c]
Added check for metafile-DC in GDISelectPalette(),
GDIRealizePalette(),RealizeDefaultPalette() and
IsDCCurrentPalette().
Tue Jul 23 22:46:53 1996 Andrew Lewycky <plewycky@oise.utoronto.ca>
* [controls/edit.c]
EDIT_WM_Create: Don't EDIT_EM_ReplaceSel if created with lParam = "",
fixes Winhelp.
* [windows/dialog.c]
DIALOG_CreateIndirect: Initialise dlgProc before creating children.
1996-07-28 18:50:11 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI SetBrushOrgEx( HDC hdc, INT x, INT y, LPPOINT oldorg )
|
Release 960728
Sun Jul 28 17:57:19 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [loader/task.c] [include/task.h]
Implemented SwitchStackTo()/SwitchStackBack().
* [include/wintypes.h] [loader/main.c]
Added __winelib variable to distinguish between emulator and
library at run-time. Later on, this should avoid some
recompilations when building Winelib.
* [windows/property.c]
Implemented Win32 functions for window properties.
Fri Jul 26 18:00:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu>
* [controls/listbox.c]
Implemented LBS_SORT style, WM_COMPAREITEM, and WM_DELETEITEM
messages.
* [controls/menu.c]
Call TranslateMessage() to enable shortcuts (on WM_CHAR).
* [include/cursoricon.h]
Moved #pragma pack(1) back to where it belongs.
* [objects/palette.c]
RealizeDefaultPalette() maps to system colors only.
Do not broadcast palette notifications when in TrueColor.
* [objects/color.c] [include/palette.h]
Miscellaneous optimizations. Had to fix several
"improvements" made to my patch for previous release.
* [objects/dib.c]
Reverse dib bits order for 24-bit SetDIBits().
* [objects/dc.c]
GetDeviceCaps() does not return RC_PALETTE when in TrueColor.
* [windows/scroll.c]
Scroll update region too.
* [windows/message.c]
Include QS_MOUSE into the event mask for nonclient mouse
message filter. Fixes problems with Word 6 freezing when
mouse hits nonclient area.
* [windows/win.c]
Allow top-level windows to be linked as HWND_TOP in CreateWindow().
* [windows/winpos.c] [windows/mdi.c]
Attempt to fix control menu duplication.
Fri Jul 26 09:49:35 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/drive.c]
GetDriveType32A(): return value for CDROM fixed.
* [files/file.c]
SearchPath* added.
* [if1632/gdi32.spec] [objects/brush.c]
SetBrushOrgEx() added.
* [loader/pe_resource.c]
If even loading the default entry fails, we just use the first
entry from the resource directory.
[loader/task.c]
SetSigHandler() stub added, Paradox 4.5 now starts up.
* [misc/comm.c] [include/windows.h] [if1632/kernel32.spec]
COMM functions updated to win32, not complete.
* [misc/lstr.c]
FormatMessageA partially implemented.
* [include/miscemu.h] [memory/selector.c]
[memory/global.c] [miscemu/dosmem.c]
DOS memory handling changed: 1MB preallocated block, real-mode
segment handling possible, SetSelectorBase into lower physical 1MB
possible.
* [miscemu/dpmi.c]
Real-mode segments changed, real-mode int 21,ax=6506 added.
AX=0x0303 added.
* [multimedia/time.c]
Fixed bug in killTimer.
* [objects/bitmap.c]
LoadImageA partially implemented.
Wed Jul 24 18:20:24 1996 Albrecht Kleine <kleine@ak.sax.de>
* [include/dde_mem.h][include/dde_proc.h]
[ipc/dde_atom.c][ipc/dde_proc.c][windows/message.c]
[ipc/generic_hash.h][library/miscstubs.c]
Changes for error free compilation using "--with-ipc":
replaced some names with *16-equivalent (e.g. MSG to MSG16),
modified prototype of function DDE_GlobalFree() .
* [objects/palette.c]
Added check for metafile-DC in GDISelectPalette(),
GDIRealizePalette(),RealizeDefaultPalette() and
IsDCCurrentPalette().
Tue Jul 23 22:46:53 1996 Andrew Lewycky <plewycky@oise.utoronto.ca>
* [controls/edit.c]
EDIT_WM_Create: Don't EDIT_EM_ReplaceSel if created with lParam = "",
fixes Winhelp.
* [windows/dialog.c]
DIALOG_CreateIndirect: Initialise dlgProc before creating children.
1996-07-28 18:50:11 +00:00
|
|
|
{
|
2008-02-05 16:35:40 +00:00
|
|
|
DC *dc = get_dc_ptr( hdc );
|
Release 960728
Sun Jul 28 17:57:19 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [loader/task.c] [include/task.h]
Implemented SwitchStackTo()/SwitchStackBack().
* [include/wintypes.h] [loader/main.c]
Added __winelib variable to distinguish between emulator and
library at run-time. Later on, this should avoid some
recompilations when building Winelib.
* [windows/property.c]
Implemented Win32 functions for window properties.
Fri Jul 26 18:00:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu>
* [controls/listbox.c]
Implemented LBS_SORT style, WM_COMPAREITEM, and WM_DELETEITEM
messages.
* [controls/menu.c]
Call TranslateMessage() to enable shortcuts (on WM_CHAR).
* [include/cursoricon.h]
Moved #pragma pack(1) back to where it belongs.
* [objects/palette.c]
RealizeDefaultPalette() maps to system colors only.
Do not broadcast palette notifications when in TrueColor.
* [objects/color.c] [include/palette.h]
Miscellaneous optimizations. Had to fix several
"improvements" made to my patch for previous release.
* [objects/dib.c]
Reverse dib bits order for 24-bit SetDIBits().
* [objects/dc.c]
GetDeviceCaps() does not return RC_PALETTE when in TrueColor.
* [windows/scroll.c]
Scroll update region too.
* [windows/message.c]
Include QS_MOUSE into the event mask for nonclient mouse
message filter. Fixes problems with Word 6 freezing when
mouse hits nonclient area.
* [windows/win.c]
Allow top-level windows to be linked as HWND_TOP in CreateWindow().
* [windows/winpos.c] [windows/mdi.c]
Attempt to fix control menu duplication.
Fri Jul 26 09:49:35 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/drive.c]
GetDriveType32A(): return value for CDROM fixed.
* [files/file.c]
SearchPath* added.
* [if1632/gdi32.spec] [objects/brush.c]
SetBrushOrgEx() added.
* [loader/pe_resource.c]
If even loading the default entry fails, we just use the first
entry from the resource directory.
[loader/task.c]
SetSigHandler() stub added, Paradox 4.5 now starts up.
* [misc/comm.c] [include/windows.h] [if1632/kernel32.spec]
COMM functions updated to win32, not complete.
* [misc/lstr.c]
FormatMessageA partially implemented.
* [include/miscemu.h] [memory/selector.c]
[memory/global.c] [miscemu/dosmem.c]
DOS memory handling changed: 1MB preallocated block, real-mode
segment handling possible, SetSelectorBase into lower physical 1MB
possible.
* [miscemu/dpmi.c]
Real-mode segments changed, real-mode int 21,ax=6506 added.
AX=0x0303 added.
* [multimedia/time.c]
Fixed bug in killTimer.
* [objects/bitmap.c]
LoadImageA partially implemented.
Wed Jul 24 18:20:24 1996 Albrecht Kleine <kleine@ak.sax.de>
* [include/dde_mem.h][include/dde_proc.h]
[ipc/dde_atom.c][ipc/dde_proc.c][windows/message.c]
[ipc/generic_hash.h][library/miscstubs.c]
Changes for error free compilation using "--with-ipc":
replaced some names with *16-equivalent (e.g. MSG to MSG16),
modified prototype of function DDE_GlobalFree() .
* [objects/palette.c]
Added check for metafile-DC in GDISelectPalette(),
GDIRealizePalette(),RealizeDefaultPalette() and
IsDCCurrentPalette().
Tue Jul 23 22:46:53 1996 Andrew Lewycky <plewycky@oise.utoronto.ca>
* [controls/edit.c]
EDIT_WM_Create: Don't EDIT_EM_ReplaceSel if created with lParam = "",
fixes Winhelp.
* [windows/dialog.c]
DIALOG_CreateIndirect: Initialise dlgProc before creating children.
1996-07-28 18:50:11 +00:00
|
|
|
|
|
|
|
if (!dc) return FALSE;
|
|
|
|
if (oldorg)
|
|
|
|
{
|
2000-11-05 02:05:07 +00:00
|
|
|
oldorg->x = dc->brushOrgX;
|
|
|
|
oldorg->y = dc->brushOrgY;
|
Release 960728
Sun Jul 28 17:57:19 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [loader/task.c] [include/task.h]
Implemented SwitchStackTo()/SwitchStackBack().
* [include/wintypes.h] [loader/main.c]
Added __winelib variable to distinguish between emulator and
library at run-time. Later on, this should avoid some
recompilations when building Winelib.
* [windows/property.c]
Implemented Win32 functions for window properties.
Fri Jul 26 18:00:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu>
* [controls/listbox.c]
Implemented LBS_SORT style, WM_COMPAREITEM, and WM_DELETEITEM
messages.
* [controls/menu.c]
Call TranslateMessage() to enable shortcuts (on WM_CHAR).
* [include/cursoricon.h]
Moved #pragma pack(1) back to where it belongs.
* [objects/palette.c]
RealizeDefaultPalette() maps to system colors only.
Do not broadcast palette notifications when in TrueColor.
* [objects/color.c] [include/palette.h]
Miscellaneous optimizations. Had to fix several
"improvements" made to my patch for previous release.
* [objects/dib.c]
Reverse dib bits order for 24-bit SetDIBits().
* [objects/dc.c]
GetDeviceCaps() does not return RC_PALETTE when in TrueColor.
* [windows/scroll.c]
Scroll update region too.
* [windows/message.c]
Include QS_MOUSE into the event mask for nonclient mouse
message filter. Fixes problems with Word 6 freezing when
mouse hits nonclient area.
* [windows/win.c]
Allow top-level windows to be linked as HWND_TOP in CreateWindow().
* [windows/winpos.c] [windows/mdi.c]
Attempt to fix control menu duplication.
Fri Jul 26 09:49:35 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/drive.c]
GetDriveType32A(): return value for CDROM fixed.
* [files/file.c]
SearchPath* added.
* [if1632/gdi32.spec] [objects/brush.c]
SetBrushOrgEx() added.
* [loader/pe_resource.c]
If even loading the default entry fails, we just use the first
entry from the resource directory.
[loader/task.c]
SetSigHandler() stub added, Paradox 4.5 now starts up.
* [misc/comm.c] [include/windows.h] [if1632/kernel32.spec]
COMM functions updated to win32, not complete.
* [misc/lstr.c]
FormatMessageA partially implemented.
* [include/miscemu.h] [memory/selector.c]
[memory/global.c] [miscemu/dosmem.c]
DOS memory handling changed: 1MB preallocated block, real-mode
segment handling possible, SetSelectorBase into lower physical 1MB
possible.
* [miscemu/dpmi.c]
Real-mode segments changed, real-mode int 21,ax=6506 added.
AX=0x0303 added.
* [multimedia/time.c]
Fixed bug in killTimer.
* [objects/bitmap.c]
LoadImageA partially implemented.
Wed Jul 24 18:20:24 1996 Albrecht Kleine <kleine@ak.sax.de>
* [include/dde_mem.h][include/dde_proc.h]
[ipc/dde_atom.c][ipc/dde_proc.c][windows/message.c]
[ipc/generic_hash.h][library/miscstubs.c]
Changes for error free compilation using "--with-ipc":
replaced some names with *16-equivalent (e.g. MSG to MSG16),
modified prototype of function DDE_GlobalFree() .
* [objects/palette.c]
Added check for metafile-DC in GDISelectPalette(),
GDIRealizePalette(),RealizeDefaultPalette() and
IsDCCurrentPalette().
Tue Jul 23 22:46:53 1996 Andrew Lewycky <plewycky@oise.utoronto.ca>
* [controls/edit.c]
EDIT_WM_Create: Don't EDIT_EM_ReplaceSel if created with lParam = "",
fixes Winhelp.
* [windows/dialog.c]
DIALOG_CreateIndirect: Initialise dlgProc before creating children.
1996-07-28 18:50:11 +00:00
|
|
|
}
|
2000-11-05 02:05:07 +00:00
|
|
|
dc->brushOrgX = x;
|
|
|
|
dc->brushOrgY = y;
|
2008-02-05 16:35:40 +00:00
|
|
|
release_dc_ptr( dc );
|
Release 960728
Sun Jul 28 17:57:19 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [loader/task.c] [include/task.h]
Implemented SwitchStackTo()/SwitchStackBack().
* [include/wintypes.h] [loader/main.c]
Added __winelib variable to distinguish between emulator and
library at run-time. Later on, this should avoid some
recompilations when building Winelib.
* [windows/property.c]
Implemented Win32 functions for window properties.
Fri Jul 26 18:00:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu>
* [controls/listbox.c]
Implemented LBS_SORT style, WM_COMPAREITEM, and WM_DELETEITEM
messages.
* [controls/menu.c]
Call TranslateMessage() to enable shortcuts (on WM_CHAR).
* [include/cursoricon.h]
Moved #pragma pack(1) back to where it belongs.
* [objects/palette.c]
RealizeDefaultPalette() maps to system colors only.
Do not broadcast palette notifications when in TrueColor.
* [objects/color.c] [include/palette.h]
Miscellaneous optimizations. Had to fix several
"improvements" made to my patch for previous release.
* [objects/dib.c]
Reverse dib bits order for 24-bit SetDIBits().
* [objects/dc.c]
GetDeviceCaps() does not return RC_PALETTE when in TrueColor.
* [windows/scroll.c]
Scroll update region too.
* [windows/message.c]
Include QS_MOUSE into the event mask for nonclient mouse
message filter. Fixes problems with Word 6 freezing when
mouse hits nonclient area.
* [windows/win.c]
Allow top-level windows to be linked as HWND_TOP in CreateWindow().
* [windows/winpos.c] [windows/mdi.c]
Attempt to fix control menu duplication.
Fri Jul 26 09:49:35 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/drive.c]
GetDriveType32A(): return value for CDROM fixed.
* [files/file.c]
SearchPath* added.
* [if1632/gdi32.spec] [objects/brush.c]
SetBrushOrgEx() added.
* [loader/pe_resource.c]
If even loading the default entry fails, we just use the first
entry from the resource directory.
[loader/task.c]
SetSigHandler() stub added, Paradox 4.5 now starts up.
* [misc/comm.c] [include/windows.h] [if1632/kernel32.spec]
COMM functions updated to win32, not complete.
* [misc/lstr.c]
FormatMessageA partially implemented.
* [include/miscemu.h] [memory/selector.c]
[memory/global.c] [miscemu/dosmem.c]
DOS memory handling changed: 1MB preallocated block, real-mode
segment handling possible, SetSelectorBase into lower physical 1MB
possible.
* [miscemu/dpmi.c]
Real-mode segments changed, real-mode int 21,ax=6506 added.
AX=0x0303 added.
* [multimedia/time.c]
Fixed bug in killTimer.
* [objects/bitmap.c]
LoadImageA partially implemented.
Wed Jul 24 18:20:24 1996 Albrecht Kleine <kleine@ak.sax.de>
* [include/dde_mem.h][include/dde_proc.h]
[ipc/dde_atom.c][ipc/dde_proc.c][windows/message.c]
[ipc/generic_hash.h][library/miscstubs.c]
Changes for error free compilation using "--with-ipc":
replaced some names with *16-equivalent (e.g. MSG to MSG16),
modified prototype of function DDE_GlobalFree() .
* [objects/palette.c]
Added check for metafile-DC in GDISelectPalette(),
GDIRealizePalette(),RealizeDefaultPalette() and
IsDCCurrentPalette().
Tue Jul 23 22:46:53 1996 Andrew Lewycky <plewycky@oise.utoronto.ca>
* [controls/edit.c]
EDIT_WM_Create: Don't EDIT_EM_ReplaceSel if created with lParam = "",
fixes Winhelp.
* [windows/dialog.c]
DIALOG_CreateIndirect: Initialise dlgProc before creating children.
1996-07-28 18:50:11 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
Release 971221
Fri Dec 19 10:50:46 1997 Douglas Ridgway <ridgway@winehq.com>
* [Make.rules.in] [Makefile.in] [documentation/Makefile.in]
[documentation/README.documentation]
First cut at Wine API documentation. No longer install reference
manual by default.
Wed Dec 17 21:32:23 1997 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed GetTempFileName16() to use current path of requested drive
as needed.
* [if1632/Makefile.in] [if1632/builtin.c] [if1632/dciman32.spec]
[if1632/msvfw32.spec] [if1632/tapi32.spec] [if1632/wow32.spec]
Added misc DLLs needed by various apps.
Wed Dec 17 12:01:50 1997 Morten Eriksen <mortene@sim.no>
* [if1632/gdi32.spec] [include/windows.h] [objects/palette.c]
Inserted empty stub for CreateHalftonePalette.
Tue Dec 16 22:08:06 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/mdi.c]
Use VK_TAB instead of VK_SEPARATOR in TranslateMDISysAccel().
* [graphics/metafiledrv/init.c]
DeleteDC() on a MetaDC doesn't do anything - it shouldn't. Therefore
fix cleanup of MetaDCs in CloseMetaFile(); they now actually get
removed from the GDI heap!
* [graphics/x11drv/xfont.c]
Preserve FO_MATCH_XYINDEP flag in XFONT_MatchFIList(). Should reduce
the number of bold-italic matches.
Tue Dec 16 20:11:43 1997 Bertho Stultiens <bertho@panter.soci.aau.dk>
* [graphics/painting.c]
Included an implementation of DrawState
* [if1632/thunk.c]
Changed many fprintfs into dprintf_thunk
* [include/cache.h] [graphics/cache.c]
New files to hold cached handles to regulary used GDI object.
* [include/windows.h]
Added DRAWSTATExx typedefs
Added DSS_DEFAULT define for DrawState
* [objects/text.c]
New implementation of GrayString()
* [controls/uitools.c]
Implemented DrawFrameControl() functions
Changed DrawEdge() behaviour to win95 implementation
Mon Dec 15 23:43:01 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [graphics/path.c] [include/path.h] [graphics/painting.c]
[if1632/gdi32.spec] [include/gdi.h] [include/windows.h]
[objects/dc.c]
Added preliminary support for GDI paths.
* [objects/dc.c]
Added DC_Init_DC_INFO function for initializing WIN_DC_INFO
structure.
* [include/windows.h] [include/gdi.h] [objects/gdiobj.c]
Added DEFAULT_GUI_FONT.
* [include/winerror.h]
Added a few error codes.
* [memory/heap.c]
Changed HeapAlloc to make the correct calls to SetLastError
(now conforms to NT's behaviour).
* [windows/win.c]
Changed WIN_CreateWindowEx to allow child windows with zero
width / height.
Sun Dec 14 12:01:07 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [if1632/*] [relay32/*]
Moved all 32-bit relay stuff to relay32/
* [fi1632/thunk.c] [win32/kernel32.c]
Moved all KERNEL32 ordinal functions to kernel32.c
* [memory/selector.c]
Initialize selectors in AllocSelectorArray.
* [tools/build.c]
Generate C instead of assembly for Win32 relays.
Fixed stack corruption in CallTo16 functions, found by Bertho
Stultiens.
Sun Dec 14 10:55:00 1997 Andreas Mohr <100.30936@germany.net>
* [if1632/Makefile.in] [if1632/builtin.c] [if1632/ole2thk.spec]
Added built-in OLE2THK.DLL.
* [if1632/toolhelp.spec] [include/toolhelp.h] [memory/selector.c]
[misc/toolhelp.c]
Added stubs for StackTraceFirst(), StackTraceCSIPFirst(),
StackTraceNext(), UTSelectorOffsetToLinear()
and UTLinearToSelectorOffset().
Sat Dec 13 17:26:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [misc/winsock.c]
32-bit API fixes for reported problems (thanks to Marcus
and David).
* [graphics/x11drv/xfont.c]
Little tweak in point size calculation.
* [windows/defwnd.c] [windows/dce.c] [windows/winhelp.c]
[windows/winproc.c] [windows/win.c]
Bug fixes.
Sat Dec 13 16:35:14 1997 Kai Morich <kai.morich@rhein-neckar.netsurf.de>
* [files/dos_fs.c]
OpenFile with empty filename and OF_PARSE returns current dir.
* [misc/commdlg.c]
Ignore initial dir if bogus.
* [files/file.c]
Locking an identic region in a file must not be an error.
* [misc/lstr.c]
Use wide char ctype functions.
Fri Dec 12 23:46:22 1997 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [file/drive.c]
First attempt for GetDiskFreeSpaceEx.
Fri Dec 12 23:18:41 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [loader/pe_resource.c]
Fixed wrongly appearing menus problem (only use default lookups in
last resource subtree).
* [multimedia/*.c]
Added win32 support for time* and joy* lowlevel drivers,
(not excessively tested), some misc fixes and cleanups.
* [misc/shellord.c][misc/shell.c][ole/folders.c][ole/ifs.c]
[include/interfaces.h][include/shlobj.h]
Added some more undocumented SHELL32 functions, some shell folder
interface stubs added, SHGetMalloc, SHGetDesktopFolder,
SHGetSpecialFolderLocation, SHGetPathFromIDList stubs added,
IMalloc, IUnknown implemented.
* [windows/msgbox.c]
Implemented MessageBoxIndirect*, some internal changes.
* [if1632/thunk.c]
KERNEL_431 implemented.
* [objects/gdiobj.c]
GetCurrentObject implemented.
Wed Dec 3 01:09:17 1997 Gordon Chaffee <chaffee@apu.cs.berkeley.edu>
* [objects/dib.c]
Fix a couple small DIB problems.
* [controls/edit.c]
Fix a typo.
* [files/dos_fs.c]
Try normal readdir in case fs is specified as vfat but isn't.
* [files/profile.c]
Implementation of WritePrivateProfileSection32A from Uwe Bonnes.
* [misc/printdrv.c]
OpenPrinter32A stub, helps Word97 start.
* [objects/text.c]
Fixup implementation of GetTextCharsetInfo.
* [scheduler/process.c]
Fix environment variable expansion.
* [win32/code_page.c]
Make MultiByteToWideChar and WideCharToMultiByte conform in return
values and error conditions to those in Windows NT 4.0.
* [windows/message.c]
Fix broadcasting problems in Win32. The Win32 docs say to use
HWND_TOPMOST to broadcast to all Win32 Windows.
* [memory/virtual.c] [loader/pe_image.c]
Do not map in VirtualAlloc if address is specified and space is
not available. This is required by Win32.
* [include/pen.h] [include/x11drv.h] [objects/dc.c]
[objects/pen.c] [graphics/x11drv/pen.c]
Support for ExtCreatePen.
Tue Dec 2 20:22:06 1997 Morten Welinder <terra@diku.dk>
* [*/*.c] [*/*.h]
Add lots of prototypes.
* [if1632/kernel32.spec][include/windows.h][include/winnt.h]
[misc/cpu.c]
Define IsProcessorFeaturePresent.
* [misc/crtdll.c]
(CRTDLL__getcwd): Allocate enough memory for the terminating zero.
* [misc/ver.c]
Improve check for null component in _find_data[AW]. Plug leaks
in VerQueryValue*.
* [win32/console.c][if1632/kernel32.spec]
Add stubs for GetConsoleCursorInfo32, SetConsoleCursorInfo32.
* [windows/message.c][if1632/user32.spec][include/windows.h]
Define SendMessageTimeout*.
* [graphics/x11drv/xfont.c]
Change algorithm of __genericCheckSum to be alignment safe.
* [misc/main.c] [misc/winsock.c] [misc/winsock_dns.c]
Include winsock.h early to avoid Solaris problem.
* [include/windows.h]
Undef FSHIFT before we define it.
* [rc/winerc.c]
Include <fcntl.h> instead of <sys/fcntl.h>.
* [files/file.c]
Use strerror in FILE_SetDosError if available.
* [include/config.h.in] [configure.in]
Check for strerror.
* [objects/gdiobj.c]
Make static font structures aligned.
Mon Dec 1 10:10:21 1997 Karl Garrison <karlos@eznet.net>
* [win32/console.c] [if1632/kernel32.spec] [include/windows.h]
Added stub for GetNumberOfConsoleMouseButtons.
Added stub for PeekConsoleInput(A,W).
Fixed parameter list for WriteConsole(A,W).
GetNumberOfConsoleInputEvents now returns 0 events instead of 1
(since low-level console functions are not yet supported).
GetConsoleMode no longer returns ENABLE_WINDOW_INPUT and
ENABLE_MOUSE_INPUT since these are not currently implemented.
1997-12-21 19:17:50 +00:00
|
|
|
/***********************************************************************
|
2001-02-14 23:11:17 +00:00
|
|
|
* FixBrushOrgEx (GDI32.@)
|
2004-08-20 19:57:11 +00:00
|
|
|
*
|
|
|
|
* See SetBrushOrgEx.
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* This function is no longer documented by MSDN, but in Win95 GDI32 it
|
|
|
|
* is the same as SetBrushOrgEx().
|
Release 971221
Fri Dec 19 10:50:46 1997 Douglas Ridgway <ridgway@winehq.com>
* [Make.rules.in] [Makefile.in] [documentation/Makefile.in]
[documentation/README.documentation]
First cut at Wine API documentation. No longer install reference
manual by default.
Wed Dec 17 21:32:23 1997 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed GetTempFileName16() to use current path of requested drive
as needed.
* [if1632/Makefile.in] [if1632/builtin.c] [if1632/dciman32.spec]
[if1632/msvfw32.spec] [if1632/tapi32.spec] [if1632/wow32.spec]
Added misc DLLs needed by various apps.
Wed Dec 17 12:01:50 1997 Morten Eriksen <mortene@sim.no>
* [if1632/gdi32.spec] [include/windows.h] [objects/palette.c]
Inserted empty stub for CreateHalftonePalette.
Tue Dec 16 22:08:06 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/mdi.c]
Use VK_TAB instead of VK_SEPARATOR in TranslateMDISysAccel().
* [graphics/metafiledrv/init.c]
DeleteDC() on a MetaDC doesn't do anything - it shouldn't. Therefore
fix cleanup of MetaDCs in CloseMetaFile(); they now actually get
removed from the GDI heap!
* [graphics/x11drv/xfont.c]
Preserve FO_MATCH_XYINDEP flag in XFONT_MatchFIList(). Should reduce
the number of bold-italic matches.
Tue Dec 16 20:11:43 1997 Bertho Stultiens <bertho@panter.soci.aau.dk>
* [graphics/painting.c]
Included an implementation of DrawState
* [if1632/thunk.c]
Changed many fprintfs into dprintf_thunk
* [include/cache.h] [graphics/cache.c]
New files to hold cached handles to regulary used GDI object.
* [include/windows.h]
Added DRAWSTATExx typedefs
Added DSS_DEFAULT define for DrawState
* [objects/text.c]
New implementation of GrayString()
* [controls/uitools.c]
Implemented DrawFrameControl() functions
Changed DrawEdge() behaviour to win95 implementation
Mon Dec 15 23:43:01 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [graphics/path.c] [include/path.h] [graphics/painting.c]
[if1632/gdi32.spec] [include/gdi.h] [include/windows.h]
[objects/dc.c]
Added preliminary support for GDI paths.
* [objects/dc.c]
Added DC_Init_DC_INFO function for initializing WIN_DC_INFO
structure.
* [include/windows.h] [include/gdi.h] [objects/gdiobj.c]
Added DEFAULT_GUI_FONT.
* [include/winerror.h]
Added a few error codes.
* [memory/heap.c]
Changed HeapAlloc to make the correct calls to SetLastError
(now conforms to NT's behaviour).
* [windows/win.c]
Changed WIN_CreateWindowEx to allow child windows with zero
width / height.
Sun Dec 14 12:01:07 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [if1632/*] [relay32/*]
Moved all 32-bit relay stuff to relay32/
* [fi1632/thunk.c] [win32/kernel32.c]
Moved all KERNEL32 ordinal functions to kernel32.c
* [memory/selector.c]
Initialize selectors in AllocSelectorArray.
* [tools/build.c]
Generate C instead of assembly for Win32 relays.
Fixed stack corruption in CallTo16 functions, found by Bertho
Stultiens.
Sun Dec 14 10:55:00 1997 Andreas Mohr <100.30936@germany.net>
* [if1632/Makefile.in] [if1632/builtin.c] [if1632/ole2thk.spec]
Added built-in OLE2THK.DLL.
* [if1632/toolhelp.spec] [include/toolhelp.h] [memory/selector.c]
[misc/toolhelp.c]
Added stubs for StackTraceFirst(), StackTraceCSIPFirst(),
StackTraceNext(), UTSelectorOffsetToLinear()
and UTLinearToSelectorOffset().
Sat Dec 13 17:26:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [misc/winsock.c]
32-bit API fixes for reported problems (thanks to Marcus
and David).
* [graphics/x11drv/xfont.c]
Little tweak in point size calculation.
* [windows/defwnd.c] [windows/dce.c] [windows/winhelp.c]
[windows/winproc.c] [windows/win.c]
Bug fixes.
Sat Dec 13 16:35:14 1997 Kai Morich <kai.morich@rhein-neckar.netsurf.de>
* [files/dos_fs.c]
OpenFile with empty filename and OF_PARSE returns current dir.
* [misc/commdlg.c]
Ignore initial dir if bogus.
* [files/file.c]
Locking an identic region in a file must not be an error.
* [misc/lstr.c]
Use wide char ctype functions.
Fri Dec 12 23:46:22 1997 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [file/drive.c]
First attempt for GetDiskFreeSpaceEx.
Fri Dec 12 23:18:41 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [loader/pe_resource.c]
Fixed wrongly appearing menus problem (only use default lookups in
last resource subtree).
* [multimedia/*.c]
Added win32 support for time* and joy* lowlevel drivers,
(not excessively tested), some misc fixes and cleanups.
* [misc/shellord.c][misc/shell.c][ole/folders.c][ole/ifs.c]
[include/interfaces.h][include/shlobj.h]
Added some more undocumented SHELL32 functions, some shell folder
interface stubs added, SHGetMalloc, SHGetDesktopFolder,
SHGetSpecialFolderLocation, SHGetPathFromIDList stubs added,
IMalloc, IUnknown implemented.
* [windows/msgbox.c]
Implemented MessageBoxIndirect*, some internal changes.
* [if1632/thunk.c]
KERNEL_431 implemented.
* [objects/gdiobj.c]
GetCurrentObject implemented.
Wed Dec 3 01:09:17 1997 Gordon Chaffee <chaffee@apu.cs.berkeley.edu>
* [objects/dib.c]
Fix a couple small DIB problems.
* [controls/edit.c]
Fix a typo.
* [files/dos_fs.c]
Try normal readdir in case fs is specified as vfat but isn't.
* [files/profile.c]
Implementation of WritePrivateProfileSection32A from Uwe Bonnes.
* [misc/printdrv.c]
OpenPrinter32A stub, helps Word97 start.
* [objects/text.c]
Fixup implementation of GetTextCharsetInfo.
* [scheduler/process.c]
Fix environment variable expansion.
* [win32/code_page.c]
Make MultiByteToWideChar and WideCharToMultiByte conform in return
values and error conditions to those in Windows NT 4.0.
* [windows/message.c]
Fix broadcasting problems in Win32. The Win32 docs say to use
HWND_TOPMOST to broadcast to all Win32 Windows.
* [memory/virtual.c] [loader/pe_image.c]
Do not map in VirtualAlloc if address is specified and space is
not available. This is required by Win32.
* [include/pen.h] [include/x11drv.h] [objects/dc.c]
[objects/pen.c] [graphics/x11drv/pen.c]
Support for ExtCreatePen.
Tue Dec 2 20:22:06 1997 Morten Welinder <terra@diku.dk>
* [*/*.c] [*/*.h]
Add lots of prototypes.
* [if1632/kernel32.spec][include/windows.h][include/winnt.h]
[misc/cpu.c]
Define IsProcessorFeaturePresent.
* [misc/crtdll.c]
(CRTDLL__getcwd): Allocate enough memory for the terminating zero.
* [misc/ver.c]
Improve check for null component in _find_data[AW]. Plug leaks
in VerQueryValue*.
* [win32/console.c][if1632/kernel32.spec]
Add stubs for GetConsoleCursorInfo32, SetConsoleCursorInfo32.
* [windows/message.c][if1632/user32.spec][include/windows.h]
Define SendMessageTimeout*.
* [graphics/x11drv/xfont.c]
Change algorithm of __genericCheckSum to be alignment safe.
* [misc/main.c] [misc/winsock.c] [misc/winsock_dns.c]
Include winsock.h early to avoid Solaris problem.
* [include/windows.h]
Undef FSHIFT before we define it.
* [rc/winerc.c]
Include <fcntl.h> instead of <sys/fcntl.h>.
* [files/file.c]
Use strerror in FILE_SetDosError if available.
* [include/config.h.in] [configure.in]
Check for strerror.
* [objects/gdiobj.c]
Make static font structures aligned.
Mon Dec 1 10:10:21 1997 Karl Garrison <karlos@eznet.net>
* [win32/console.c] [if1632/kernel32.spec] [include/windows.h]
Added stub for GetNumberOfConsoleMouseButtons.
Added stub for PeekConsoleInput(A,W).
Fixed parameter list for WriteConsole(A,W).
GetNumberOfConsoleInputEvents now returns 0 events instead of 1
(since low-level console functions are not yet supported).
GetConsoleMode no longer returns ENABLE_WINDOW_INPUT and
ENABLE_MOUSE_INPUT since these are not currently implemented.
1997-12-21 19:17:50 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
BOOL WINAPI FixBrushOrgEx( HDC hdc, INT x, INT y, LPPOINT oldorg )
|
Release 971221
Fri Dec 19 10:50:46 1997 Douglas Ridgway <ridgway@winehq.com>
* [Make.rules.in] [Makefile.in] [documentation/Makefile.in]
[documentation/README.documentation]
First cut at Wine API documentation. No longer install reference
manual by default.
Wed Dec 17 21:32:23 1997 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed GetTempFileName16() to use current path of requested drive
as needed.
* [if1632/Makefile.in] [if1632/builtin.c] [if1632/dciman32.spec]
[if1632/msvfw32.spec] [if1632/tapi32.spec] [if1632/wow32.spec]
Added misc DLLs needed by various apps.
Wed Dec 17 12:01:50 1997 Morten Eriksen <mortene@sim.no>
* [if1632/gdi32.spec] [include/windows.h] [objects/palette.c]
Inserted empty stub for CreateHalftonePalette.
Tue Dec 16 22:08:06 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [windows/mdi.c]
Use VK_TAB instead of VK_SEPARATOR in TranslateMDISysAccel().
* [graphics/metafiledrv/init.c]
DeleteDC() on a MetaDC doesn't do anything - it shouldn't. Therefore
fix cleanup of MetaDCs in CloseMetaFile(); they now actually get
removed from the GDI heap!
* [graphics/x11drv/xfont.c]
Preserve FO_MATCH_XYINDEP flag in XFONT_MatchFIList(). Should reduce
the number of bold-italic matches.
Tue Dec 16 20:11:43 1997 Bertho Stultiens <bertho@panter.soci.aau.dk>
* [graphics/painting.c]
Included an implementation of DrawState
* [if1632/thunk.c]
Changed many fprintfs into dprintf_thunk
* [include/cache.h] [graphics/cache.c]
New files to hold cached handles to regulary used GDI object.
* [include/windows.h]
Added DRAWSTATExx typedefs
Added DSS_DEFAULT define for DrawState
* [objects/text.c]
New implementation of GrayString()
* [controls/uitools.c]
Implemented DrawFrameControl() functions
Changed DrawEdge() behaviour to win95 implementation
Mon Dec 15 23:43:01 1997 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [graphics/path.c] [include/path.h] [graphics/painting.c]
[if1632/gdi32.spec] [include/gdi.h] [include/windows.h]
[objects/dc.c]
Added preliminary support for GDI paths.
* [objects/dc.c]
Added DC_Init_DC_INFO function for initializing WIN_DC_INFO
structure.
* [include/windows.h] [include/gdi.h] [objects/gdiobj.c]
Added DEFAULT_GUI_FONT.
* [include/winerror.h]
Added a few error codes.
* [memory/heap.c]
Changed HeapAlloc to make the correct calls to SetLastError
(now conforms to NT's behaviour).
* [windows/win.c]
Changed WIN_CreateWindowEx to allow child windows with zero
width / height.
Sun Dec 14 12:01:07 1997 Alexandre Julliard <julliard@lrc.epfl.ch>
* [if1632/*] [relay32/*]
Moved all 32-bit relay stuff to relay32/
* [fi1632/thunk.c] [win32/kernel32.c]
Moved all KERNEL32 ordinal functions to kernel32.c
* [memory/selector.c]
Initialize selectors in AllocSelectorArray.
* [tools/build.c]
Generate C instead of assembly for Win32 relays.
Fixed stack corruption in CallTo16 functions, found by Bertho
Stultiens.
Sun Dec 14 10:55:00 1997 Andreas Mohr <100.30936@germany.net>
* [if1632/Makefile.in] [if1632/builtin.c] [if1632/ole2thk.spec]
Added built-in OLE2THK.DLL.
* [if1632/toolhelp.spec] [include/toolhelp.h] [memory/selector.c]
[misc/toolhelp.c]
Added stubs for StackTraceFirst(), StackTraceCSIPFirst(),
StackTraceNext(), UTSelectorOffsetToLinear()
and UTLinearToSelectorOffset().
Sat Dec 13 17:26:41 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [misc/winsock.c]
32-bit API fixes for reported problems (thanks to Marcus
and David).
* [graphics/x11drv/xfont.c]
Little tweak in point size calculation.
* [windows/defwnd.c] [windows/dce.c] [windows/winhelp.c]
[windows/winproc.c] [windows/win.c]
Bug fixes.
Sat Dec 13 16:35:14 1997 Kai Morich <kai.morich@rhein-neckar.netsurf.de>
* [files/dos_fs.c]
OpenFile with empty filename and OF_PARSE returns current dir.
* [misc/commdlg.c]
Ignore initial dir if bogus.
* [files/file.c]
Locking an identic region in a file must not be an error.
* [misc/lstr.c]
Use wide char ctype functions.
Fri Dec 12 23:46:22 1997 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [file/drive.c]
First attempt for GetDiskFreeSpaceEx.
Fri Dec 12 23:18:41 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [loader/pe_resource.c]
Fixed wrongly appearing menus problem (only use default lookups in
last resource subtree).
* [multimedia/*.c]
Added win32 support for time* and joy* lowlevel drivers,
(not excessively tested), some misc fixes and cleanups.
* [misc/shellord.c][misc/shell.c][ole/folders.c][ole/ifs.c]
[include/interfaces.h][include/shlobj.h]
Added some more undocumented SHELL32 functions, some shell folder
interface stubs added, SHGetMalloc, SHGetDesktopFolder,
SHGetSpecialFolderLocation, SHGetPathFromIDList stubs added,
IMalloc, IUnknown implemented.
* [windows/msgbox.c]
Implemented MessageBoxIndirect*, some internal changes.
* [if1632/thunk.c]
KERNEL_431 implemented.
* [objects/gdiobj.c]
GetCurrentObject implemented.
Wed Dec 3 01:09:17 1997 Gordon Chaffee <chaffee@apu.cs.berkeley.edu>
* [objects/dib.c]
Fix a couple small DIB problems.
* [controls/edit.c]
Fix a typo.
* [files/dos_fs.c]
Try normal readdir in case fs is specified as vfat but isn't.
* [files/profile.c]
Implementation of WritePrivateProfileSection32A from Uwe Bonnes.
* [misc/printdrv.c]
OpenPrinter32A stub, helps Word97 start.
* [objects/text.c]
Fixup implementation of GetTextCharsetInfo.
* [scheduler/process.c]
Fix environment variable expansion.
* [win32/code_page.c]
Make MultiByteToWideChar and WideCharToMultiByte conform in return
values and error conditions to those in Windows NT 4.0.
* [windows/message.c]
Fix broadcasting problems in Win32. The Win32 docs say to use
HWND_TOPMOST to broadcast to all Win32 Windows.
* [memory/virtual.c] [loader/pe_image.c]
Do not map in VirtualAlloc if address is specified and space is
not available. This is required by Win32.
* [include/pen.h] [include/x11drv.h] [objects/dc.c]
[objects/pen.c] [graphics/x11drv/pen.c]
Support for ExtCreatePen.
Tue Dec 2 20:22:06 1997 Morten Welinder <terra@diku.dk>
* [*/*.c] [*/*.h]
Add lots of prototypes.
* [if1632/kernel32.spec][include/windows.h][include/winnt.h]
[misc/cpu.c]
Define IsProcessorFeaturePresent.
* [misc/crtdll.c]
(CRTDLL__getcwd): Allocate enough memory for the terminating zero.
* [misc/ver.c]
Improve check for null component in _find_data[AW]. Plug leaks
in VerQueryValue*.
* [win32/console.c][if1632/kernel32.spec]
Add stubs for GetConsoleCursorInfo32, SetConsoleCursorInfo32.
* [windows/message.c][if1632/user32.spec][include/windows.h]
Define SendMessageTimeout*.
* [graphics/x11drv/xfont.c]
Change algorithm of __genericCheckSum to be alignment safe.
* [misc/main.c] [misc/winsock.c] [misc/winsock_dns.c]
Include winsock.h early to avoid Solaris problem.
* [include/windows.h]
Undef FSHIFT before we define it.
* [rc/winerc.c]
Include <fcntl.h> instead of <sys/fcntl.h>.
* [files/file.c]
Use strerror in FILE_SetDosError if available.
* [include/config.h.in] [configure.in]
Check for strerror.
* [objects/gdiobj.c]
Make static font structures aligned.
Mon Dec 1 10:10:21 1997 Karl Garrison <karlos@eznet.net>
* [win32/console.c] [if1632/kernel32.spec] [include/windows.h]
Added stub for GetNumberOfConsoleMouseButtons.
Added stub for PeekConsoleInput(A,W).
Fixed parameter list for WriteConsole(A,W).
GetNumberOfConsoleInputEvents now returns 0 events instead of 1
(since low-level console functions are not yet supported).
GetConsoleMode no longer returns ENABLE_WINDOW_INPUT and
ENABLE_MOUSE_INPUT since these are not currently implemented.
1997-12-21 19:17:50 +00:00
|
|
|
{
|
|
|
|
return SetBrushOrgEx(hdc,x,y,oldorg);
|
|
|
|
}
|
|
|
|
|
Release 960728
Sun Jul 28 17:57:19 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [loader/task.c] [include/task.h]
Implemented SwitchStackTo()/SwitchStackBack().
* [include/wintypes.h] [loader/main.c]
Added __winelib variable to distinguish between emulator and
library at run-time. Later on, this should avoid some
recompilations when building Winelib.
* [windows/property.c]
Implemented Win32 functions for window properties.
Fri Jul 26 18:00:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu>
* [controls/listbox.c]
Implemented LBS_SORT style, WM_COMPAREITEM, and WM_DELETEITEM
messages.
* [controls/menu.c]
Call TranslateMessage() to enable shortcuts (on WM_CHAR).
* [include/cursoricon.h]
Moved #pragma pack(1) back to where it belongs.
* [objects/palette.c]
RealizeDefaultPalette() maps to system colors only.
Do not broadcast palette notifications when in TrueColor.
* [objects/color.c] [include/palette.h]
Miscellaneous optimizations. Had to fix several
"improvements" made to my patch for previous release.
* [objects/dib.c]
Reverse dib bits order for 24-bit SetDIBits().
* [objects/dc.c]
GetDeviceCaps() does not return RC_PALETTE when in TrueColor.
* [windows/scroll.c]
Scroll update region too.
* [windows/message.c]
Include QS_MOUSE into the event mask for nonclient mouse
message filter. Fixes problems with Word 6 freezing when
mouse hits nonclient area.
* [windows/win.c]
Allow top-level windows to be linked as HWND_TOP in CreateWindow().
* [windows/winpos.c] [windows/mdi.c]
Attempt to fix control menu duplication.
Fri Jul 26 09:49:35 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [files/drive.c]
GetDriveType32A(): return value for CDROM fixed.
* [files/file.c]
SearchPath* added.
* [if1632/gdi32.spec] [objects/brush.c]
SetBrushOrgEx() added.
* [loader/pe_resource.c]
If even loading the default entry fails, we just use the first
entry from the resource directory.
[loader/task.c]
SetSigHandler() stub added, Paradox 4.5 now starts up.
* [misc/comm.c] [include/windows.h] [if1632/kernel32.spec]
COMM functions updated to win32, not complete.
* [misc/lstr.c]
FormatMessageA partially implemented.
* [include/miscemu.h] [memory/selector.c]
[memory/global.c] [miscemu/dosmem.c]
DOS memory handling changed: 1MB preallocated block, real-mode
segment handling possible, SetSelectorBase into lower physical 1MB
possible.
* [miscemu/dpmi.c]
Real-mode segments changed, real-mode int 21,ax=6506 added.
AX=0x0303 added.
* [multimedia/time.c]
Fixed bug in killTimer.
* [objects/bitmap.c]
LoadImageA partially implemented.
Wed Jul 24 18:20:24 1996 Albrecht Kleine <kleine@ak.sax.de>
* [include/dde_mem.h][include/dde_proc.h]
[ipc/dde_atom.c][ipc/dde_proc.c][windows/message.c]
[ipc/generic_hash.h][library/miscstubs.c]
Changes for error free compilation using "--with-ipc":
replaced some names with *16-equivalent (e.g. MSG to MSG16),
modified prototype of function DDE_GlobalFree() .
* [objects/palette.c]
Added check for metafile-DC in GDISelectPalette(),
GDIRealizePalette(),RealizeDefaultPalette() and
IsDCCurrentPalette().
Tue Jul 23 22:46:53 1996 Andrew Lewycky <plewycky@oise.utoronto.ca>
* [controls/edit.c]
EDIT_WM_Create: Don't EDIT_EM_ReplaceSel if created with lParam = "",
fixes Winhelp.
* [windows/dialog.c]
DIALOG_CreateIndirect: Initialise dlgProc before creating children.
1996-07-28 18:50:11 +00:00
|
|
|
|
2002-05-31 18:43:22 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* BRUSH_SelectObject
|
|
|
|
*/
|
2007-09-27 18:14:13 +00:00
|
|
|
static HGDIOBJ BRUSH_SelectObject( HGDIOBJ handle, HDC hdc )
|
2002-05-31 18:43:22 +00:00
|
|
|
{
|
2007-09-27 18:14:13 +00:00
|
|
|
BRUSHOBJ *brush;
|
|
|
|
HGDIOBJ ret = 0;
|
|
|
|
DC *dc = get_dc_ptr( hdc );
|
2002-05-31 18:43:22 +00:00
|
|
|
|
2008-02-05 20:17:28 +00:00
|
|
|
if (!dc)
|
|
|
|
{
|
|
|
|
SetLastError( ERROR_INVALID_HANDLE );
|
|
|
|
return 0;
|
|
|
|
}
|
2002-05-31 18:43:22 +00:00
|
|
|
|
2007-09-27 18:14:13 +00:00
|
|
|
if ((brush = GDI_GetObjPtr( handle, BRUSH_MAGIC )))
|
|
|
|
{
|
|
|
|
if (brush->logbrush.lbStyle == BS_PATTERN)
|
|
|
|
BITMAP_SetOwnerDC( (HBITMAP)brush->logbrush.lbHatch, dc );
|
|
|
|
|
2008-02-05 20:17:28 +00:00
|
|
|
GDI_inc_ref_count( handle );
|
|
|
|
GDI_ReleaseObj( handle );
|
|
|
|
|
|
|
|
if (dc->funcs->pSelectBrush && !dc->funcs->pSelectBrush( dc->physDev, handle ))
|
|
|
|
{
|
|
|
|
GDI_dec_ref_count( handle );
|
|
|
|
}
|
|
|
|
else
|
2007-09-27 18:57:02 +00:00
|
|
|
{
|
|
|
|
ret = dc->hBrush;
|
|
|
|
dc->hBrush = handle;
|
|
|
|
GDI_dec_ref_count( ret );
|
|
|
|
}
|
2007-09-27 18:14:13 +00:00
|
|
|
}
|
|
|
|
release_dc_ptr( dc );
|
2002-05-31 18:43:22 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1993-09-04 10:09:32 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* BRUSH_DeleteObject
|
|
|
|
*/
|
2002-05-31 18:43:22 +00:00
|
|
|
static BOOL BRUSH_DeleteObject( HGDIOBJ handle, void *obj )
|
1993-09-04 10:09:32 +00:00
|
|
|
{
|
2002-05-31 18:43:22 +00:00
|
|
|
BRUSHOBJ *brush = obj;
|
|
|
|
|
1993-09-04 10:09:32 +00:00
|
|
|
switch(brush->logbrush.lbStyle)
|
|
|
|
{
|
|
|
|
case BS_PATTERN:
|
1999-02-26 11:11:13 +00:00
|
|
|
DeleteObject( (HGDIOBJ)brush->logbrush.lbHatch );
|
1993-09-04 10:09:32 +00:00
|
|
|
break;
|
|
|
|
case BS_DIBPATTERN:
|
1996-10-13 17:45:47 +00:00
|
|
|
GlobalFree16( (HGLOBAL16)brush->logbrush.lbHatch );
|
1993-09-04 10:09:32 +00:00
|
|
|
break;
|
|
|
|
}
|
2002-05-31 18:43:22 +00:00
|
|
|
return GDI_FreeObject( handle, obj );
|
1993-09-04 10:09:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
1996-11-02 14:24:07 +00:00
|
|
|
/***********************************************************************
|
2000-03-28 20:22:59 +00:00
|
|
|
* BRUSH_GetObject
|
1996-11-02 14:24:07 +00:00
|
|
|
*/
|
2002-05-31 18:43:22 +00:00
|
|
|
static INT BRUSH_GetObject( HGDIOBJ handle, void *obj, INT count, LPVOID buffer )
|
1993-09-04 10:09:32 +00:00
|
|
|
{
|
2002-05-31 18:43:22 +00:00
|
|
|
BRUSHOBJ *brush = obj;
|
|
|
|
|
2003-07-26 20:39:46 +00:00
|
|
|
if( !buffer )
|
|
|
|
return sizeof(brush->logbrush);
|
|
|
|
|
Release 960611
Tue Jun 11 15:20:43 1996 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/break.c] [loader/signal.c]
Fixed breakpoints in 32-bit code.
* [include/windows.h]
Added many more Win32 versions of standard structures.
* [include/winreg.h] [misc/registry.c]
Moved private types into registry.c.
* [memory/string.c] (New file)
Moved most string functions from misc/lstr.c; added Win32 version
of all functions.
* [misc/wsprintf.c]
Implemented Win32 wsprintf functions.
* [objects/bitmap.c]
Implemented Win32 bitmap functions.
* [windows/dialog.c]
Don't set dialog procedure before the controls are created. This
avoids a crash in Winhelp.
Tue Jun 11 14:10:06 1996 Martin von Loewis <loewis@informatik.hu-berlin.de>
* [controls/menu.c] [if1632/user.spec] [windows/message.c]
Replace PeekMessage with PeekMessage16.
* [if1632/kernel32.spec][misc/main.c]
GetVersion32,GetVersionEx32A,GetVersionEx32W: new functions.
MAIN_ParseVersion: new function, new command line option -winver.
GetVersion: modified to take command line argument into account.
* [if1632/kernel32.spec] [win32/process.c]
FreeLibrary32: new function.
TlsAlloc: initialize Tls to zero.
InterlockedIncrement,InterlockedDecrement,InterlockedExchange: new
functions.
* [if1632/kernel32.spec]
SetErrorMode,GetActiveWindow: new relays to existing functions.
* [if1632/kernel32.spec][win32/user32.c]
PeekMessage32A,PeekMessage32W: new functions.
* [include/struct32.h][include/windows.h]
Moved MSG32 to windows.h.
Renamed MSG to MSG16.
Modified prototypes to use MSG16
* [include/winbase.h]
OSVERSIONINFO32A,OSVERSIONINFO32W: new structures.
Sun Jun 9 20:53:30 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [if1632/Makefile.in] [loader/builtin.c]
version.dll,lz32.dll added.
* [include/lzexpand.h] [if1632/lz32.spec] [if1632/lzexpand.spec]
[misc/lzexpand.c]
lz32.dll added.
Modified to new function naming standard.
* [include/ver.h] [if1632/ver.spec] [if1632/version.spec] [misc/ver.c]
version.dll added (win32 version of ver.dll).
Modified to new function naming standard.
Use registry to look up a LOCALE langids too.
(VerInstallFile,VerFindFile still stubs)
Fri Jun 7 20:40:20 1996 Albrecht Kleine <kleine@ak.sax.de>
* [files/file.c]
Added a warning if GetTempFileName() gets a bad drive parameter.
* [misc/commdlg.c]
Changed file listbox color to gray in SaveFile dialog
(just like Windows does this).
1996-06-11 16:02:08 +00:00
|
|
|
if (count > sizeof(brush->logbrush)) count = sizeof(brush->logbrush);
|
1993-09-04 10:09:32 +00:00
|
|
|
memcpy( buffer, &brush->logbrush, count );
|
|
|
|
return count;
|
|
|
|
}
|
1998-11-22 12:54:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-06-28 18:04:41 +00:00
|
|
|
* SetSolidBrush (GDI.604)
|
1998-11-22 12:54:38 +00:00
|
|
|
*
|
2004-08-20 19:57:11 +00:00
|
|
|
* Change the color of a solid brush.
|
1998-11-22 12:54:38 +00:00
|
|
|
*
|
2004-08-20 19:57:11 +00:00
|
|
|
* PARAMS
|
|
|
|
* hBrush [I] Brush to change the color of
|
|
|
|
* newColor [I] New color for hBrush
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: TRUE. The color of hBrush is set to newColor.
|
|
|
|
* Failure: FALSE.
|
2001-04-20 18:29:45 +00:00
|
|
|
*
|
2004-08-20 19:57:11 +00:00
|
|
|
* FIXME
|
|
|
|
* This function is undocumented and untested. The implementation may
|
|
|
|
* not be correct.
|
1998-11-22 12:54:38 +00:00
|
|
|
*/
|
|
|
|
BOOL16 WINAPI SetSolidBrush16(HBRUSH16 hBrush, COLORREF newColor )
|
|
|
|
{
|
2001-04-20 18:29:45 +00:00
|
|
|
BRUSHOBJ * brushPtr;
|
|
|
|
BOOL16 res = FALSE;
|
|
|
|
|
2008-01-05 16:44:09 +00:00
|
|
|
TRACE("(hBrush %04x, newColor %08x)\n", hBrush, newColor);
|
2008-10-23 21:51:07 +00:00
|
|
|
if (!(brushPtr = GDI_GetObjPtr( HBRUSH_32(hBrush), BRUSH_MAGIC )))
|
2001-04-20 18:29:45 +00:00
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
if (brushPtr->logbrush.lbStyle == BS_SOLID)
|
|
|
|
{
|
|
|
|
brushPtr->logbrush.lbColor = newColor;
|
|
|
|
res = TRUE;
|
|
|
|
}
|
1998-11-22 12:54:38 +00:00
|
|
|
|
2002-11-21 21:50:04 +00:00
|
|
|
GDI_ReleaseObj( HBRUSH_32(hBrush) );
|
2001-04-20 18:29:45 +00:00
|
|
|
return res;
|
1998-11-22 12:54:38 +00:00
|
|
|
}
|