copybit now uses a native_handle_t* instead of a fd/offset

This commit is contained in:
Mathias Agopian 2009-06-24 16:54:44 -07:00
parent 31802ca9c0
commit 689fa73c06
2 changed files with 5 additions and 5 deletions

View file

@ -103,12 +103,10 @@ struct copybit_image_t {
uint32_t h;
/* format COPYBIT_FORMAT_xxx */
int32_t format;
/* offset from base to first pixel */
uint32_t offset;
/* base of buffer with image */
void *base;
/* file descriptor for image */
int fd;
void *base;
/* handle to the image */
native_handle_t* handle;
};
/* Rectangle */

View file

@ -34,6 +34,8 @@
/*****************************************************************************/
struct private_module_t;
inline size_t roundUpToPageSize(size_t x) {
return (x + (PAGESIZE-1)) & ~(PAGESIZE-1);
}