gfx/drawingOperations: Relocate char_index