mirror of
				https://github.com/isledecomp/isle.git
				synced 2025-10-26 01:44:19 +00:00 
			
		
		
		
	 9e686e2a87
			
		
	
	9e686e2a87
	
	
	
		
			
			* cmake+ci: run clang-tidy
* Remove DESCRIPTION from LEGO1/LegoOmni.mingw.def
* Add initial .clang-tidy and fixes
* fix file perms
* Comment out DESCRIPTION
* Remove LegoEntity::~LegoEntity and MxPresenter::~MxPresenter from mingw's LEGO1.def
* Looks like clang is allergic to the libs in the directx5 SDK
* Update .clang-tidy
* Fix typo in .clang-tidy
* Attempt to generate an action error
* Revert "Attempt to generate an action error"
This reverts commit 96c4c65fed.
* cmake: test with -Wparentheses + optionally with -Werror
* ci: -k0 is a Ninja argument
* Use -Werror only for msys2 builds
* cmake: only emit warnings for specific warnings
* cmake: and don't do -Werror/-WX anymore
* Fix warnings
* Fix mingw warnings
---------
Co-authored-by: Christian Semmler <mail@csemmler.com>
		
	
		
			
				
	
	
		
			42 lines
		
	
	
		
			1023 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1023 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef MXPALETTE_H
 | |
| #define MXPALETTE_H
 | |
| 
 | |
| #include "mxcore.h"
 | |
| #include "mxtypes.h"
 | |
| 
 | |
| #include <ddraw.h>
 | |
| 
 | |
| // VTABLE: LEGO1 0x100dc848
 | |
| // SIZE 0x414
 | |
| class MxPalette : public MxCore {
 | |
| public:
 | |
| 	MxBool operator==(MxPalette& p_other);
 | |
| 	void Detach();
 | |
| 
 | |
| 	MxPalette();
 | |
| 	MxPalette(const RGBQUAD*);
 | |
| 	~MxPalette() override;
 | |
| 
 | |
| 	void ApplySystemEntriesToPalette(LPPALETTEENTRY p_entries);
 | |
| 	MxPalette* Clone();
 | |
| 	void GetDefaultPalette(LPPALETTEENTRY p_entries);
 | |
| 	MxResult GetEntries(LPPALETTEENTRY p_entries);
 | |
| 	MxResult SetEntries(LPPALETTEENTRY p_palette);
 | |
| 	MxResult SetSkyColor(LPPALETTEENTRY p_skyColor);
 | |
| 	void Reset(MxBool p_ignoreSkyColor);
 | |
| 	LPDIRECTDRAWPALETTE CreateNativePalette();
 | |
| 
 | |
| 	inline void SetOverrideSkyColor(MxBool p_value) { this->m_overrideSkyColor = p_value; }
 | |
| 
 | |
| 	// SYNTHETIC: LEGO1 0x100beeb0
 | |
| 	// MxPalette::`scalar deleting destructor'
 | |
| 
 | |
| private:
 | |
| 	LPDIRECTDRAWPALETTE m_palette;
 | |
| 	PALETTEENTRY m_entries[256]; // 0x0c
 | |
| 	MxBool m_overrideSkyColor;   // 0x40c
 | |
| 	PALETTEENTRY m_skyColor;     // 0x40d
 | |
| };
 | |
| 
 | |
| #endif // MXPALETTE_H
 |