mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:23:07 +00:00
[ROSAPPS] Fix GCC8 warnings
This commit is contained in:
parent
f7afca0973
commit
97d937add1
11 changed files with 53 additions and 42 deletions
|
@ -1,4 +1,8 @@
|
|||
|
||||
if(GCC AND GCC_VERSION VERSION_GREATER 7)
|
||||
add_compile_flags("-Wno-stringop-overflow")
|
||||
endif()
|
||||
|
||||
add_executable(createspec createspec.c)
|
||||
set_module_type(createspec win32cui)
|
||||
target_link_libraries(createspec wine)
|
||||
|
|
|
@ -30,13 +30,6 @@ GetCharacterRect(IN UINT uFontRow, IN UINT uFontColumn, OUT LPRECT CharacterRect
|
|||
CharacterRect->bottom = CharacterRect->top + CHARACTER_BOX_HEIGHT;
|
||||
}
|
||||
|
||||
__inline VOID
|
||||
GetCharacterPosition(IN UINT uCharacter, OUT PUINT uFontRow, OUT PUINT uFontColumn)
|
||||
{
|
||||
*uFontRow = uCharacter / 16;
|
||||
*uFontColumn = uCharacter % 16;
|
||||
}
|
||||
|
||||
static INT
|
||||
FontBoxesHitTest(IN UINT xPos, IN UINT yPos, OUT LPRECT CharacterRect)
|
||||
{
|
||||
|
|
|
@ -136,9 +136,14 @@ VOID CreateFontBoxesWindow(PFONT_WND_INFO FontWndInfo);
|
|||
BOOL InitFontBoxesWndClass(VOID);
|
||||
VOID UnInitFontBoxesWndClass(VOID);
|
||||
VOID GetCharacterRect(IN UINT uFontRow, IN UINT uFontColumn, OUT LPRECT CharacterRect);
|
||||
__inline VOID GetCharacterPosition(IN UINT uCharacter, OUT PUINT uFontRow, OUT PUINT uFontColumn);
|
||||
VOID EditCurrentGlyph(PFONT_WND_INFO FontWndInfo);
|
||||
|
||||
inline VOID GetCharacterPosition(IN UINT uCharacter, OUT PUINT uFontRow, OUT PUINT uFontColumn)
|
||||
{
|
||||
*uFontRow = uCharacter / 16;
|
||||
*uFontColumn = uCharacter % 16;
|
||||
}
|
||||
|
||||
// fontwnd.c
|
||||
BOOL CreateFontWindow(PMAIN_WND_INFO MainWndInfo, PFONT_OPEN_INFO OpenInfo);
|
||||
BOOL InitFontWndClass(VOID);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue