Update gfx.cpp