Skip to content

Commit

Permalink
fixed windows icon
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-dev committed Oct 3, 2023
1 parent d1bb9d0 commit 5024bb7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 12 deletions.
Binary file removed Icon/midi-osc-midi.ico
Binary file not shown.
33 changes: 21 additions & 12 deletions bin/data/MIDI_OSC_SETTINGS.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
{
"Log_level": 0,
"allInPorts": [
"IAC Driver Bus 1",
"Euphonix MIDI Euphonix Port 1",
"Euphonix MIDI Euphonix Port 2",
"Euphonix MIDI Euphonix Port 3",
"Euphonix MIDI Euphonix Port 4"
"Euphonix EuMidi1 0",
"Euphonix EuMidi2 1",
"Euphonix EuMidi3 2",
"Euphonix EuMidi4 3",
"Euphonix EuMidi5 4",
"Euphonix EuMidi6 5",
"Euphonix EuMidi7 6",
"Euphonix EuMidi8 7",
"loopMIDI Port 8"
],
"allOutPorts": [
"IAC Driver Bus 1",
"Euphonix MIDI Euphonix Port 1",
"Euphonix MIDI Euphonix Port 2",
"Euphonix MIDI Euphonix Port 3",
"Euphonix MIDI Euphonix Port 4"
"Microsoft GS Wavetable Synth 0",
"Euphonix EuMidi1 1",
"Euphonix EuMidi2 2",
"Euphonix EuMidi3 3",
"Euphonix EuMidi4 4",
"Euphonix EuMidi5 5",
"Euphonix EuMidi6 6",
"Euphonix EuMidi7 7",
"Euphonix EuMidi8 8",
"loopMIDI Port 9"
],
"frameRate": 25,
"inPortLabel": "IAC Driver Bus 1",
"inPortLabel": "Euphonix EuMidi1 0",
"incomingPortOsc": 1233,
"midiInChannel": 1,
"midiInDevice": "IAC Driver Bus 1",
Expand All @@ -29,7 +38,7 @@
"midiOutDeviceName": null,
"midiOutDeviceNum": 0,
"outGoingPortOsc": 1234,
"outPortLabel": "IAC Driver Bus 1",
"outPortLabel": "Microsoft GS Wavetable Synth 0",
"outgoingIpOSC": "127.0.0.1",
"useVirtualPort": false
}
15 changes: 15 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@

#include "ofMain.h"
#include "ofApp.h"


#ifdef TARGET_WIN32

#define IDI_ICON1 101

#endif

//========================================================================
int main( ){

Expand All @@ -11,6 +19,13 @@ int main( ){

auto window = ofCreateWindow(settings);

#ifdef TARGET_WIN32
HWND hwnd = ofGetWin32Window();
// Load and set the application icon
HICON hIcon = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_ICON1));
SendMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM)hIcon); // Set the large icon
SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)hIcon); // Set the small icon
#endif
ofRunApp(window, std::make_shared<ofApp>());
ofRunMainLoop();

Expand Down

0 comments on commit 5024bb7

Please sign in to comment.