Skip to content

Commit

Permalink
Indenting.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed May 22, 2015
1 parent 84c6d45 commit e315269
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions gxtest/depth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void update_screen( Mtx viewMatrix )
// e.g. printf ("\x1b[%d;%dH", row, column );
printf("\x1b[2;0H");

test_peek(320, 264);
test_peek(320, 264);

VIDEO_WaitVSync();
return;
Expand All @@ -147,7 +147,7 @@ void update_screen( Mtx viewMatrix )
static void copy_buffers(u32 count __attribute__ ((unused)))
{
if (readyForCopy==GX_TRUE) {
GX_PokeZMode(GX_TRUE, GX_ALWAYS, GX_TRUE);
GX_PokeZMode(GX_TRUE, GX_ALWAYS, GX_TRUE);
GX_SetColorUpdate(GX_TRUE);
GX_CopyDisp(frameBuffer,GX_TRUE);
GX_Flush();
Expand All @@ -158,20 +158,20 @@ static void copy_buffers(u32 count __attribute__ ((unused)))
static void test_peek(u16 x, u16 y)
{
u32 z = 0;
// Test a peek
// Test a peek
GX_PeekZ(x, y, &z);
printf("Z Peek: %d\n",z);

// Compare to hardware
if (z != HW_PEEK)
printf("The Z value is INACCURATE!\n");
else
printf("The Z value is accurate.\n");
// Compare to hardware
if (z != HW_PEEK)
printf("The Z value is INACCURATE!\n");
else
printf("The Z value is accurate.\n");

// Mark the location
GX_PokeBlendMode(GX_BM_LOGIC, 1, 0, GX_LO_COPY);
GX_PokeColorUpdate(GX_TRUE);
// Mark the location
GX_PokeBlendMode(GX_BM_LOGIC, 1, 0, GX_LO_COPY);
GX_PokeColorUpdate(GX_TRUE);
GXColor color = { 255, 255, 0, 255 };
GX_PokeARGB(x, y, color);
}

0 comments on commit e315269

Please sign in to comment.