mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 04:02:52 -06:00 
			
		
		
		
	Rollback changes in BitmapCache
This commit is contained in:
		
							parent
							
								
									3bc7580e8c
								
							
						
					
					
						commit
						d82505984a
					
				
					 2 changed files with 1 additions and 7 deletions
				
			
		|  | @ -88,10 +88,7 @@ wxBitmap* BitmapCache::insert(const std::string &bitmap_key, std::vector<wxBitma | |||
| 
 | ||||
|     wxMemoryDC memDC; | ||||
|     memDC.SelectObject(*bitmap); | ||||
| #ifdef __WXGTK__ | ||||
| #else | ||||
| 	memDC.SetBackground(*wxTRANSPARENT_BRUSH); | ||||
| #endif | ||||
|     memDC.Clear(); | ||||
|     size_t x = 0; | ||||
| 	for (wxBitmap &bmp : bmps) { | ||||
|  |  | |||
|  | @ -31,10 +31,7 @@ public: | |||
| 
 | ||||
| 	static wxBitmap mksolid(size_t width, size_t height, unsigned char r, unsigned char g, unsigned char b, unsigned char transparency); | ||||
| 	static wxBitmap mksolid(size_t width, size_t height, const unsigned char rgb[3]) { return mksolid(width, height, rgb[0], rgb[1], rgb[2], wxALPHA_OPAQUE); } | ||||
| 	static wxBitmap mkclear(size_t width, size_t height) { | ||||
| 		wxColour bg_clr = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW); | ||||
| 		return mksolid(width, height, bg_clr.Red(), bg_clr.Green(), bg_clr.Blue()/*, 0, 0, 0*/,  wxALPHA_TRANSPARENT); | ||||
| 	} | ||||
| 	static wxBitmap mkclear(size_t width, size_t height) { return mksolid(width, height, 0, 0, 0, wxALPHA_TRANSPARENT); } | ||||
| 
 | ||||
| private: | ||||
|     std::map<std::string, wxBitmap*>	m_map; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 YuSanka
						YuSanka