Actually it really, really didn't.
Students of history will know that National Party (which assembled Grand Apartheid and ruled from 1948 to 1994) merrily gerrymandered the entire country on a scale seldom seem.
1. liberal (more English) areas like those near Durban were magically made part of conservative (more Afrikaans) farming areas hundreds of kilometres away. A good example is the affluent enclaves of Kloof and Hillcrest in Durban were somehow part of the [at the time] extremely conservative Voortrekker town of Greytown a mere 150km away;
2. a further law deemed that the rural votes in each such Frankenstein voting district counted 100%, the distant urban votes a mere 75%
3. this happened everywhere and ensured a massive majority for the National Party in every province;
4. there was by design - and in the most literal sense - no way for the white population to vote themselves out of Apartheid. It was so successful that for many years their was only ONE liberal opposition member of parliament [Houghton, Johannesburg].
I understand details are tough and cloud the cartoon good-vs-evil polemic you were no doubt exposed to. I guess one does get more dopamine from wild sweeping statements that reinforce and display your own ignorance and bigotry. I wouldn't use my real name either in posts like yours.
For the casual observer: let this be a cautionary tale when gerrymandering is attempted in your own democracy.
[PS. Southern Rhodesia - now Zimbabwe - had a different, but equally effective voting mechanism to suppress the growth of a liberal opposition. For another day ]