Skip to content

Commit

Permalink
Fix X compilation for contextonly.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlohr committed Jan 23, 2022
1 parent 49063a7 commit 4589f47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CNFGXDriver.c
Expand Up @@ -131,7 +131,9 @@ void CNFGGetDimensions( short * x, short * y )
{
lastx = *x;
lasty = *y;
#ifndef CNFGCONTEXTONLY
CNFGInternalResize( lastx, lasty );
#endif
}
}

Expand Down Expand Up @@ -355,7 +357,9 @@ int CNFGSetup( const char * WindowName, int w, int h )
#endif

#ifdef CNFG_BATCH
#ifndef CNFGCONTEXTONLY
CNFGSetupBatchInternal();
#endif
#endif

return 0;
Expand Down Expand Up @@ -444,8 +448,10 @@ void CNFGSwapBuffers()
if( CNFGWindowInvisible ) return;

#ifndef CNFGRASTERIZER
#ifndef CNFGCONTEXTONLY
CNFGFlushRender();
#endif
#endif

#ifdef CNFG_HAS_XSHAPE
if( taint_shape )
Expand Down

0 comments on commit 4589f47

Please sign in to comment.