Added window icon resource.

This commit is contained in:
Matthew Budd 2020-07-11 16:55:45 -04:00
parent 32116210b8
commit 2c370389fd
4 changed files with 62 additions and 1 deletions

5
resources.qrc Normal file
View File

@ -0,0 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>fceux.png</file>
</qresource>
</RCC>

View File

@ -400,7 +400,7 @@ set(SRC_DRIVERS_SDL
set(SOURCES ${SRC_CORE} ${SRC_DRIVERS_COMMON} ${SRC_DRIVERS_SDL})
add_executable( fceux ${SOURCES} )
add_executable( fceux ${SOURCES} ../resources.qrc )
target_link_libraries( fceux
${Qt5Widgets_LIBRARIES}

View File

@ -35,6 +35,7 @@ consoleWin_t::consoleWin_t(QWidget *parent)
//viewport = new ConsoleViewSDL_t(this);
setCentralWidget(viewport);
setWindowIcon(QIcon(":fceux.png"));
gameTimer = new QTimer( this );
mutex = new QMutex( QMutex::NonRecursive );

55
src/drivers/Qt/icon.xpm Normal file
View File

@ -0,0 +1,55 @@
/* XPM */
static const char * icon_xpm[] = {
"32 32 20 1",
" c None",
". c #040204",
"+ c #84A284",
"@ c #C42204",
"# c #8482C4",
"$ c #FCFEFC",
"% c #848284",
"& c #648284",
"* c #646284",
"= c #444244",
"- c #A4A284",
"; c #C4A284",
"> c #C48284",
", c #A4CAF4",
"' c #244244",
") c #444204",
"! c #442204",
"~ c #446244",
"{ c #646244",
"] c #644244",
" ",
" ........ ",
" ............... ",
" ........................ ",
" ...........................+ ",
" ............@@..@@........... ",
" .#............@@............$$ ",
" .##..........@@.@.....$$%%%%$$ ",
" &...........@....@$$$$$$%%&%$$ ",
" *&...............$$$$$$$%%&%$$ ",
" =&*.......-;;>;...$$,$$$%**&.. ",
" '&&..............$$,,,%=)!~.. ",
" ~&&............-%%##%*.~'=%& ",
" *&&.....+%%****&&%%&*.&!!' ",
" **&%&***********&&&*~{'= ",
" ********=**~**~**~ ",
" *****~******] ",
" **~***]' ",
" ~]== ",
" ",
" ..... .... .... .. ..@@ @@",
" ..... .... .... .. ..@@@ @@@",
" .. .. .. .. .. @@@ @@@ ",
" .... .. .. .. .. @@@@@@ ",
" .... .. ... .. .. @@@@ ",
" .. .. ... .. .. @@@@ ",
" .. .. .. .. .. @@@@@@ ",
" .. .. .. .. .. @@@ @@@ ",
" .. .... .... .....@@@ @@@",
" .. .... .... ... @@ @@",
" ",
" "};