finally fixed debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21061 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -38,16 +38,13 @@ enum dw_status_bits {
|
|||||||
static void
|
static void
|
||||||
print_direct_buffer_state(const direct_buffer_state &state)
|
print_direct_buffer_state(const direct_buffer_state &state)
|
||||||
{
|
{
|
||||||
if (state == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
char string[128];
|
char string[128];
|
||||||
int modeState = state & B_DIRECT_MODE_MASK;
|
int modeState = state & B_DIRECT_MODE_MASK;
|
||||||
if (state == B_DIRECT_START)
|
if (modeState == B_DIRECT_START)
|
||||||
strcpy(string, "B_DIRECT_START");
|
strcpy(string, "B_DIRECT_START");
|
||||||
else if (state == B_DIRECT_MODIFY)
|
else if (modeState == B_DIRECT_MODIFY)
|
||||||
strcpy(string, "B_DIRECT_MODIFY");
|
strcpy(string, "B_DIRECT_MODIFY");
|
||||||
else if (state == B_DIRECT_STOP)
|
else if (modeState == B_DIRECT_STOP)
|
||||||
strcpy(string, "B_DIRECT_STOP");
|
strcpy(string, "B_DIRECT_STOP");
|
||||||
|
|
||||||
if (state & B_CLIPPING_MODIFIED)
|
if (state & B_CLIPPING_MODIFIED)
|
||||||
|
|||||||
Reference in New Issue
Block a user