Graphics 640,480,0,1 dxSetBuffer dxBackBuffer() dxText 0,0,"dxEndGraphics Example Stage 1/2" dxText 0,20,"Currently in Graphics mode" dxText 0,40,"Press a key to deactive Graphics mode with dxEndGraphics command" dxFlip dxWaitKey() dxEndGraphics dxPrint "dxEndGraphics Example Stage 2/2" dxPrint "Currently in non-Graphics mode" dxWaitKey() End