Skip to content

Commit b94a7e2

Browse files
committed
[ARWINSS]
- Use proper winternl.h header from Wine. - metafile.c: No need to save font from the DC as it's not necessary to restore it (see recent Wine src code). - freetype.c: Comment out unused variable. svn path=/branches/arwinss/; revision=69524
1 parent c3c01b2 commit b94a7e2

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

arwinss/client/gdi32/dc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "winbase.h"
2929
#include "wingdi.h"
3030
#include "winreg.h"
31-
#include "winternl.h"
31+
#include "wine/winternl.h"
3232
#include "winerror.h"
3333
#include "gdi_private.h"
3434
#include "wine/unicode.h"

arwinss/client/gdi32/freetype.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ static BOOL init_system_links(void)
16531653
{
16541654
HANDLE hkey;
16551655
BOOL ret = FALSE;
1656-
DWORD type, max_val, max_data, val_len, data_len, index;
1656+
DWORD /*type,*/max_val, max_data, val_len, data_len, index;
16571657
WCHAR *value, *data;
16581658
WCHAR *entry, *next;
16591659
SYSTEM_LINKS *font_link, *system_font_link;
@@ -1729,7 +1729,7 @@ static BOOL init_system_links(void)
17291729
}
17301730

17311731
/* Copy type and data length */
1732-
type = info->Type;
1732+
//type = info->Type;
17331733
data_len = info->DataLength;
17341734

17351735

arwinss/client/gdi32/gdiobj.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "winreg.h"
3232
#include "winnls.h"
3333
#include "winerror.h"
34-
#include "winternl.h"
34+
#include "wine/winternl.h"
3535

3636
#include "gdi_private.h"
3737
#include "wine/debug.h"

arwinss/client/gdi32/metafile.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#include "wingdi.h"
5757
#include "winreg.h"
5858
#include "winnls.h"
59-
#include "winternl.h"
59+
#include "wine/winternl.h"
6060
#include "gdi_private.h"
6161
#include "wine/debug.h"
6262

@@ -394,7 +394,6 @@ static BOOL MF_PlayMetaFile( HDC hdc, METAHEADER *mh)
394394
WORD i;
395395
HPEN hPen;
396396
HBRUSH hBrush;
397-
HFONT hFont;
398397
HPALETTE hPal;
399398
HRGN hRgn;
400399
BOOL loaded = FALSE;
@@ -409,7 +408,6 @@ static BOOL MF_PlayMetaFile( HDC hdc, METAHEADER *mh)
409408
/* save DC */
410409
hPen = GetCurrentObject(hdc, OBJ_PEN);
411410
hBrush = GetCurrentObject(hdc, OBJ_BRUSH);
412-
hFont = GetCurrentObject(hdc, OBJ_FONT);
413411
hPal = GetCurrentObject(hdc, OBJ_PAL);
414412

415413
hRgn = CreateRectRgn(0, 0, 0, 0);

arwinss/client/gdi32/opengl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "winbase.h"
3232
#include "wingdi.h"
3333
#include "winerror.h"
34-
#include "winternl.h"
34+
#include "wine/winternl.h"
3535
#include "winnt.h"
3636
#include "gdi_private.h"
3737
#include "wine/debug.h"

0 commit comments

Comments
 (0)