mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-10-25 15:53:52 +02:00 
			
		
		
		
	Only include Audacity Logo xpms where they're actually needed; this cuts
~14MB from the Audacity binary.
This commit is contained in:
		| @@ -206,13 +206,16 @@ from there.  Audacity will look for a file called "Pause.png". | ||||
| #define LOGOWITHNAME_HEIGHT 200 | ||||
| //vvv For now, do the new image the old-fashioned way, not via Theme. | ||||
|    // DEFINE_IMAGE(bmpAudacityLogoWithName, wxImage(LOGOWITHNAME_WIDTH, LOGOWITHNAME_HEIGHT), wxT("AudacityLogoWithName")); | ||||
| #ifndef HAVE_AUDACITYLOGOWITHNAME | ||||
|    #define HAVE_AUDACITYLOGOWITHNAME | ||||
|    #include "../images/AudacityLogoWithName.xpm" | ||||
| #ifdef __WXGTK__ | ||||
|    #include "../images/AudacityLogoAlpha.xpm" | ||||
| #endif | ||||
| #endif | ||||
|  | ||||
| // AWD: no sense in statically building the XPM into every file that includes | ||||
| // this one; the few that need it should include it themselves. | ||||
| //#ifndef HAVE_AUDACITYLOGOWITHNAME | ||||
| //   #define HAVE_AUDACITYLOGOWITHNAME | ||||
| //   #include "../images/AudacityLogoWithName.xpm" | ||||
| //#ifdef __WXGTK__ | ||||
| //   #include "../images/AudacityLogoAlpha.xpm" | ||||
| //#endif | ||||
| //#endif | ||||
|  | ||||
|    DEFINE_IMAGE( bmpAudacityLogo, wxImage( 215, 190 ), wxT("AudacityLogo")); //vvv | ||||
|    DEFINE_IMAGE( bmpAudacityLogo48x48, wxImage( 48, 48 ), wxT("AudacityLogo48x48")); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user