In a saucepan, soften the onion and garlic in the oil. Season with salt and pepper. Add the rice and cook for 1 minute, stirring to coat with the oil. Deglaze with the wine and cook over medium heat, stirring frequently, until the liquid has been completely absorbed.