Motherboard's 4 pin DC input polarity
This is exactly what you need, "-12V" goes to "GND", and "+12V" goes to "DC_IN". You don't need to modify anything if your have the pinout shown in your second picture. This is a common wiring for "Power-DIN" connector. Keep in mind however, that pinout of power supplies sometimes use different pin assignment.