GCC: Fix inverted Y-axis and proper logic for scaling