Commit 593b9735 authored by Alexandre Julliard's avatar Alexandre Julliard

user.exe: Reimplement CopyImage16 for cursors and icons.

parent 2ced4102
......@@ -2076,8 +2076,18 @@ HANDLE16 WINAPI LoadImage16(HINSTANCE16 hinst, LPCSTR name, UINT16 type, INT16 c
HICON16 WINAPI CopyImage16(HANDLE16 hnd, UINT16 type, INT16 desiredx,
INT16 desiredy, UINT16 flags)
{
return HICON_16(CopyImage(HANDLE_32(hnd), (UINT)type, (INT)desiredx,
(INT)desiredy, (UINT)flags));
if (flags & LR_COPYFROMRESOURCE) FIXME( "LR_COPYFROMRESOURCE not supported\n" );
switch (type)
{
case IMAGE_BITMAP:
return HBITMAP_16( CopyImage( HBITMAP_32(hnd), type, desiredx, desiredy, flags ));
case IMAGE_ICON:
case IMAGE_CURSOR:
return CopyIcon16( FarGetOwner16(hnd), hnd );
default:
return 0;
}
}
/**********************************************************************
......
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