PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

How do i create a surface with a custom witdth and length

I wish to create a Surface with a custom width and length (e.g. create a new Surface on the fly). Are there any functions in pocket frog that can do that?
Code:

Surface* m_MySurface;
Display* display = GetDisplay();
m_MySurface = display->CreateSurface( 240, 320);
Even better:

Code:

Surface* mySurface = new Surface( width, height );
Ooh, that IS better :!: