EGE/src/ege/gdi.cpp: 复用简化重复实现。

Signed-off-by: FrankHB <frankhb1989@gmail.com>