MCPcopy Create free account
hub / github.com/cuberite/cuberite / SetSize

Method SetSize

Tools/BiomeVisualiser/Pixmap.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47void cPixmap::SetSize(int a_Width, int a_Height)
48{
49 delete m_Pixels;
50 m_Pixels = new int[a_Width * a_Height];
51 m_Width = a_Width;
52 m_Height = a_Height;
53 m_Stride = m_Width; // Currently we don't need a special stride value, but let's support it for the future :)
54}
55
56
57

Callers 1

OnPaintMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected