brender-1997/pixelmap/pixelmap.c

25 lines
669 B
C
Raw Normal View History

2022-05-03 16:30:35 -05:00
/*
* Copyright (c) 1992,1993-1995 Argonaut Technologies Limited. All rights reserved.
*
* $Id: pixelmap.c 2.4 1996/02/17 18:03:04 sam Exp $
* $Locker: $
*
* Manipulating pixelmaps
*/
#include "pm.h"
#include "brassert.h"
BR_RCS_ID("$Id: pixelmap.c 2.4 1996/02/17 18:03:04 sam Exp $")
/*
* Allocate a new, pixelmap of the given type and size
*
* If the 'pixels' pointer is NULL, an appropriate area of memeory will be allocated
*
*/
br_pixelmap * BR_RESIDENT_ENTRY BrPixelmapAllocate(br_uint_8 type,br_int_32 w,br_int_32 h, void *pixels, int flags)
{
return (br_pixelmap *)DevicePixelmapMemAllocate(type, (br_uint_16)w, (br_uint_16)h, pixels, flags);
}