Skip to content

Commit

Permalink
removed one unused font
Browse files Browse the repository at this point in the history
  • Loading branch information
lubomyr committed Apr 14, 2016
1 parent 0bc7d8e commit 79fbe16
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
24 changes: 12 additions & 12 deletions src/menu_guichan/menuTabMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extern gcn::Icon* icon_winlogo;
extern gcn::Widget* activateAfterClose;

#ifdef ANDROIDSDL
extern gcn::contrib::SDLTrueTypeFont* font2;
extern gcn::contrib::SDLTrueTypeFont* font14;
#endif

// Tab Main
Expand Down Expand Up @@ -310,8 +310,8 @@ void menuTabMain_Init()
radioButton_cpu68020->setPosition(5,40);
radioButton_cpu68020->setId("68020");
#ifdef ANDROIDSDL
radioButton_cpu68000->setFont(font2);
radioButton_cpu68020->setFont(font2);
radioButton_cpu68000->setFont(font14);
radioButton_cpu68020->setFont(font14);
#endif
cpuButtonActionListener = new CPUButtonActionListener();
radioButton_cpu68000->addActionListener(cpuButtonActionListener);
Expand Down Expand Up @@ -375,9 +375,9 @@ void menuTabMain_Init()
radioButton_bm_improved->setPosition(75,35);
radioButton_bm_improved->setId("BM_improved");
#ifdef ANDROIDSDL
radioButton_bm_normal->setFont(font2);
radioButton_bm_immediate->setFont(font2);
radioButton_bm_improved->setFont(font2);
radioButton_bm_normal->setFont(font14);
radioButton_bm_immediate->setFont(font14);
radioButton_bm_improved->setFont(font14);
#endif
blitterModeActionListener = new BlitterModeActionListener();
radioButton_bm_normal->addActionListener(blitterModeActionListener);
Expand Down Expand Up @@ -437,7 +437,7 @@ void menuTabMain_Init()
button_kickrom->setSize(90,22);
button_kickrom->setPosition(105,243);
#ifdef ANDROIDSDL
button_kickrom->setFont(font2);
button_kickrom->setFont(font14);
#endif
button_kickrom->setBaseColor(baseCol);
button_kickrom->setId("BrowseROM");
Expand Down Expand Up @@ -469,11 +469,11 @@ void menuTabMain_Init()
radioButton_cpuspeed_112Mhz->setId("112MHz");
#endif
#ifdef ANDROIDSDL
radioButton_cpuspeed_7Mhz->setFont(font2);
radioButton_cpuspeed_14Mhz->setFont(font2);
radioButton_cpuspeed_28Mhz->setFont(font2);
radioButton_cpuspeed_56Mhz->setFont(font2);
radioButton_cpuspeed_112Mhz->setFont(font2);
radioButton_cpuspeed_7Mhz->setFont(font14);
radioButton_cpuspeed_14Mhz->setFont(font14);
radioButton_cpuspeed_28Mhz->setFont(font14);
radioButton_cpuspeed_56Mhz->setFont(font14);
radioButton_cpuspeed_112Mhz->setFont(font14);
#endif
cpuSpeedButtonActionListener = new CPUSpeedButtonActionListener();
radioButton_cpuspeed_7Mhz->addActionListener(cpuSpeedButtonActionListener);
Expand Down
3 changes: 0 additions & 3 deletions src/menu_guichan/menu_guichan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ gcn::ImageFont* font;
gcn::contrib::SDLTrueTypeFont* font;
#endif
#ifdef ANDROIDSDL
gcn::contrib::SDLTrueTypeFont* font2;
gcn::contrib::SDLTrueTypeFont* font14;
#endif
gcn::Image *background_image;
Expand Down Expand Up @@ -590,7 +589,6 @@ void init()
TTF_Init();
#ifdef ANDROIDSDL
font = new gcn::contrib::SDLTrueTypeFont("data/FreeSans.ttf", 16);
font2 = new gcn::contrib::SDLTrueTypeFont("data/FreeNina.ttf", 16);
font14 = new gcn::contrib::SDLTrueTypeFont("data/FreeSans.ttf", 14);
#elif RASPBERRY
font = new gcn::ImageFont("data/fixedfont.bmp"," abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-()[]+'");
Expand Down Expand Up @@ -826,7 +824,6 @@ void halt()
delete font;
#ifdef ANDROIDSDL
delete font14;
delete font2;
#endif
delete top;

Expand Down

0 comments on commit 79fbe16

Please sign in to comment.