mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-25 02:33:59 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d68561769d |
@@ -152,7 +152,7 @@ static HCURSOR load_cursor_from_mem (const void* area)
|
|||||||
const Uint8* p = (Uint8*)area;
|
const Uint8* p = (Uint8*)area;
|
||||||
WORD16 wTemp;
|
WORD16 wTemp;
|
||||||
|
|
||||||
int w, h, xhot, yhot, colornum;
|
int w = 0, h = 0, xhot = 0, yhot = 0, colornum = 0;
|
||||||
#if 0
|
#if 0
|
||||||
DWORD32 size;
|
DWORD32 size;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -61,6 +61,8 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#ifdef _MGUSE_SHMOPEN
|
#ifdef _MGUSE_SHMOPEN
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|||||||
@@ -2005,7 +2005,7 @@ static DrmSurfaceBuffer *drm_create_dumb_buffer(DrmVideoData* vdata,
|
|||||||
surface_buffer->handle,
|
surface_buffer->handle,
|
||||||
surface_buffer->width, surface_buffer->height,
|
surface_buffer->width, surface_buffer->height,
|
||||||
surface_buffer->pitch,
|
surface_buffer->pitch,
|
||||||
surface_buffer->size, surface_buffer->offset);
|
(long unsigned int)surface_buffer->size, (long unsigned int)surface_buffer->offset);
|
||||||
|
|
||||||
/* prepare buffer for memory mapping */
|
/* prepare buffer for memory mapping */
|
||||||
memset(&mreq, 0, sizeof(mreq));
|
memset(&mreq, 0, sizeof(mreq));
|
||||||
@@ -2134,7 +2134,7 @@ static DrmSurfaceBuffer *drm_create_dumb_buffer_from_prime_fd(DrmVideoData* vdat
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
_DBG_PRINTF("size got by calling lseek: %lu\n", size);
|
_DBG_PRINTF("size got by calling lseek: %lu\n", (long unsigned int)size);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = drmPrimeFDToHandle (vdata->dev_fd, prime_fd, &handle);
|
ret = drmPrimeFDToHandle (vdata->dev_fd, prime_fd, &handle);
|
||||||
@@ -3493,7 +3493,7 @@ GAL_Surface* __drm_create_surface_from_name (GHANDLE video,
|
|||||||
|
|
||||||
/* called by drmCreateDCFromHandle */
|
/* called by drmCreateDCFromHandle */
|
||||||
GAL_Surface* __drm_create_surface_from_handle (GHANDLE video, uint32_t handle,
|
GAL_Surface* __drm_create_surface_from_handle (GHANDLE video, uint32_t handle,
|
||||||
unsigned long size, uint32_t drm_format, uint32_t pixels_off,
|
size_t size, uint32_t drm_format, uint32_t pixels_off,
|
||||||
uint32_t width, uint32_t height, uint32_t pitch)
|
uint32_t width, uint32_t height, uint32_t pitch)
|
||||||
{
|
{
|
||||||
GAL_VideoDevice *this = (GAL_VideoDevice *)video;
|
GAL_VideoDevice *this = (GAL_VideoDevice *)video;
|
||||||
|
|||||||
Reference in New Issue
Block a user