A few comments, cleanups.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2835 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -24,7 +24,8 @@ typedef struct
|
|||||||
CREATE_FLAGS DisplayFlags;
|
CREATE_FLAGS DisplayFlags;
|
||||||
|
|
||||||
BYTE DisplayDepth;
|
BYTE DisplayDepth;
|
||||||
COUNT DisplayWidth, DisplayHeight;
|
COUNT DisplayWidth;
|
||||||
|
COUNT DisplayHeight;
|
||||||
|
|
||||||
DRAWABLE (*alloc_image) (COUNT NumFrames, DRAWABLE_TYPE DrawableType,
|
DRAWABLE (*alloc_image) (COUNT NumFrames, DRAWABLE_TYPE DrawableType,
|
||||||
CREATE_FLAGS flags, SIZE width, SIZE height);
|
CREATE_FLAGS flags, SIZE width, SIZE height);
|
||||||
|
|||||||
@@ -30,7 +30,8 @@ read_screen (RECT *lpRect, FRAME DstFramePtr)
|
|||||||
|| !(GetFrameParentDrawable (DstFramePtr)->Flags
|
|| !(GetFrameParentDrawable (DstFramePtr)->Flags
|
||||||
& MAPPED_TO_DISPLAY))
|
& MAPPED_TO_DISPLAY))
|
||||||
{
|
{
|
||||||
log_add (log_Warning, "Unimplemented function activated: read_screen()");
|
log_add (log_Warning, "Unimplemented function activated: "
|
||||||
|
"read_screen()");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -53,14 +54,14 @@ alloc_image (COUNT NumFrames, DRAWABLE_TYPE DrawableType, CREATE_FLAGS
|
|||||||
|
|
||||||
static DISPLAY_INTERFACE DisplayInterface =
|
static DISPLAY_INTERFACE DisplayInterface =
|
||||||
{
|
{
|
||||||
WANT_MASK,
|
/* .DisplayFlags = */ WANT_MASK,
|
||||||
|
|
||||||
16, // SCREEN_DEPTH,
|
/* .DisplayDepth = */ 16,
|
||||||
320,
|
/* .DisplayWidth = */ 320,
|
||||||
240,
|
/* .DisplayHeight = */ 240,
|
||||||
|
|
||||||
alloc_image,
|
/* .alloc_iamge = */ alloc_image,
|
||||||
read_screen,
|
/* .read_display = */ read_screen,
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -70,3 +71,4 @@ LoadDisplay (DISPLAY_INTERFACE **pDisplay)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user