Lines Matching refs:surface
34 if (mSize && surface.data)
35 free(surface.data);
43 memset(&surface, 0, sizeof(surface));
44 surface.version = sizeof(surface);
74 if (!surface.data)
77 int w = surface.width;
78 int h = surface.height;
109 return surface;
122 if (mSize && surface.data) {
123 free(surface.data);
125 surface = *s;
130 // the new size of the surface could make it invalid.
139 mSize = 0; // we don't own this surface
167 if (size!=mSize || !surface.data) {
168 if (mSize && surface.data) {
169 free(surface.data);
171 surface.data = (GGLubyte*)malloc(size);
172 if (!surface.data) {
179 surface.version = sizeof(GGLSurface);
180 surface.width = w;
181 surface.height = h;
182 surface.stride = s;
183 surface.format = format;
184 surface.compressedFormat = compressedFormat;
220 const GGLSurface* prev = &surface;
223 if (curr->format != surface.format) {