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:
Meep-Eep
2007-08-10 14:47:50 +00:00
parent c3c9ab0aab
commit a11d3e9238
2 changed files with 11 additions and 8 deletions
+2 -1
View File
@@ -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);
+9 -7
View File
@@ -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