GRIM: Remove unneeded use of Graphics::createPixelFormat

This commit is contained in:
Cameron Cawley 2021-04-18 17:21:51 +01:00 committed by Eugene Sandulenko
parent f9dc98b0f6
commit 757a819da9
7 changed files with 4 additions and 26 deletions

View file

@ -27,7 +27,6 @@
#include "common/endian.h"
#include "common/textconsole.h"
#include "graphics/colormasks.h"
#include "graphics/pixelformat.h"
namespace Graphics {
@ -43,24 +42,6 @@ namespace Graphics {
class PixelBuffer {
public:
/**
* Create a PixelBuffer.
* Convenience syntax for PixelBuffer(createPixelFormat<format>(), buffersize, dispose).
*/
template<int format>
inline static PixelBuffer createBuffer(int buffersize, DisposeAfterUse::Flag dispose) {
return PixelBuffer(createPixelFormat<format>(), buffersize, dispose);
}
/**
* Create a PixelBuffer.
* Convenience syntax for PixelBuffer(createPixelFormat<format>(), buffer).
*/
template<int format>
inline static PixelBuffer createBuffer(byte *buffer) {
return PixelBuffer(createPixelFormat<format>(), buffer);
}
/**
* Construct an empty PixelBuffer.
*/