Skip to content

Commit

Permalink
Added Nucleus icon
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAltea committed Jan 4, 2015
1 parent abcf716 commit 1adde35
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*.app

# Visual Studio files
*.aps
*.ilk
*.lastcodeanalysissucceeded
*.opensdf
Expand All @@ -29,6 +30,9 @@
*.suo
*.user

# Adobe Illustrator files
*.eps

# Apitrace
*.trace

Expand Down
Binary file added nucleus/nucleus.rc
Binary file not shown.
4 changes: 4 additions & 0 deletions nucleus/nucleus.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
<ClInclude Include="logging.h" />
<ClInclude Include="memory\memory.h" />
<ClInclude Include="memory\segment.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="syscalls\callback.h" />
<ClInclude Include="syscalls\lv1\lv1_gpu.h" />
<ClInclude Include="syscalls\lv2.h" />
Expand Down Expand Up @@ -191,6 +192,9 @@
<ClInclude Include="ui\windows\window_opengl.h" />
<ClInclude Include="ui\windows\window.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="nucleus.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
4 changes: 4 additions & 0 deletions nucleus/nucleus.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@
<ClInclude Include="gpu\rsx_texture.h">
<Filter>gpu</Filter>
</ClInclude>
<ClInclude Include="resource.h" />
</ItemGroup>
<ItemGroup>
<Filter Include="memory">
Expand Down Expand Up @@ -382,4 +383,7 @@
<UniqueIdentifier>{185aee07-6b27-484a-a8a4-d09127a36a70}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="nucleus.rc" />
</ItemGroup>
</Project>
Binary file added nucleus/resource.h
Binary file not shown.
5 changes: 3 additions & 2 deletions nucleus/ui/windows/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include "window.h"
#include "nucleus/resource.h"

LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
Expand Down Expand Up @@ -33,12 +34,12 @@ Window::Window(const std::string& title, int width, int height) : m_title(title)
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wc.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_NUCLEUS);
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
wc.lpszMenuName = NULL;
wc.lpszClassName = lpszClassName;
wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
wc.hIconSm = LoadIcon(hInstance, (LPCTSTR)IDI_NUCLEUS);

if (!RegisterClassEx(&wc)) {
MessageBox(NULL, "Window Registration Failed!", "Nucleus", MB_ICONEXCLAMATION | MB_OK);
Expand Down
Binary file added resources/icons/nucleus.ico
Binary file not shown.
Binary file added resources/icons/nucleus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions resources/icons/nucleus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1adde35

Please sign in to comment.