Name
ChangeBufferSize -- change size of back buffer (V6.0)
Synopsis
int error = ChangeBufferSize(APTR handle, int width, int height,
                ULONG flags, struct hwTagList *tags);
Function
This function will usually be called by Hollywood when the display's size has changed. It tells you about the new size of Hollywood's internal back buffer and if your drawing mechanism is back buffer based as well, you need to adapt the size of your back buffer when Hollywood calls this function.

Please note that the back buffer size is not necessarily the same as the window's physical dimensions. If autoscaling is active, back buffer size and the window's physical dimensions can be different.

If you don't use a back buffer you won't have to do anything here. This is often the case for plugins which are designed to draw in hardware double buffer mode. In that case, an additional back buffer is not necessary and would only slow things down.

Inputs
handle
display handle returned by OpenDisplay()
width
new back buffer width
height
new back buffer height
flags
additional flags (currently 0)
tags
taglist for additional options (currently always NULL)
Results
error
error code or 0 for success

Show TOC