Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
icon: reduce warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FauxFaux committed Jul 19, 2018
1 parent 11e60f5 commit dc4ed09
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,14 @@ union control *ctrl_checkbox(struct controlset *,
intorptr context);
union control *ctrl_tabdelay(struct controlset *, union control *);

// region tray-icon

union control *ctrl_icon(struct controlset *s,
intorptr helpctx,
intorptr context);

// endregion

/*
* Routines the platform-independent dialog code can call to read
* and write the values of controls.
Expand Down
3 changes: 3 additions & 0 deletions mkcmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def main():
set(EXTRA_FLAGS "${{EXTRA_FLAGS}} /GS") # buffer security check
set(EXTRA_FLAGS "${{EXTRA_FLAGS}} /guard:cf") # control flow guard
set(EXTRA_FLAGS "${{EXTRA_FLAGS}} /wd4244") # disable type conversion warnings :(((((
set(EXTRA_FLAGS "${{EXTRA_FLAGS}} /wd4267") # disable type conversion warnings :(((((
add_definitions(-D_CRT_SECURE_NO_WARNINGS=1)
set(CMAKE_C_FLAGS "${{CMAKE_C_FLAGS}} ${{EXTRA_FLAGS}}")
Expand Down
7 changes: 7 additions & 0 deletions windows/winstuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,13 @@ void dlg_auto_set_fixed_pitch_flag(void *dlg);
int dlg_get_fixed_pitch_flag(void *dlg);
void dlg_set_fixed_pitch_flag(void *dlg, int flag);

// region tray-icon

void dlg_icon_set(union control *ctrl, void *dlg, char const *icon);
HICON extract_icon(const char *iconpath, int smallicon);

// endregion

#define MAX_SHORTCUTS_PER_CTRL 16

/*
Expand Down

0 comments on commit dc4ed09

Please sign in to comment.