Brandon Jennings scored 25 points, Andrew Bogut and Drew Gooden both had double-doubles and the Milwaukee Bucks beat the Toronto Raptors 104-98 on Wednesday night.
Gooden had 22 points and 11 rebounds and Bogut had 17 points and 10 rebounds for the Bucks, who had lost three of their previous four games. Carlos Delfino added 14 points for Milwaukee.
Michael Redd scored five points in 8 minutes for the Bucks, who entered three games behind Indiana for the final playoff spot in the East. Milwaukee, which has eight games left to play, visits Indiana on Friday night.
Andrea Bargnani scored 22 points and DeMar DeRozan had 20 for the Raptors, who lost their fifth straight.
Both Gooden and Redd ended lengthy absences in Monday's one-point loss at Charlotte. Redd had missed 14 months after two knee surgeries, while Gooden had not played since Jan. 21 with plantar fasciitis in his left foot.
Bargnani (right ankle) and Reggie Evans (right foot) returned to Toronto's lineup after sitting out Saturday's road loss to the Los Angeles Clippers.
The Bucks led 85-80 with 7:19 remaining, but DeRozan made two free throws and a jump shot and Bargnani added a driving layup to put the Raptors up 88-87 with 4:49 left.
Delfino answered with a 3-pointer and Gooden drained two from the line to give Milwaukee a 92-88 lead with 2:50 to go.
Toronto twice cut the deficit in half on reverse layups from Jerryd Bayless and Barbosa, but a hook shot by Bogut and a jumper from Gooden put Milwaukee up 98-92 with 43 seconds left, and the Bucks sealed victory at the free-throw line.
The Raptors started hot, making 10 of their first 11 shots to open a 24-12 lead. But Toronto made just two more field goals in the final four minutes of the quarter as Milwaukee closed the gap to 28-22 after one.
Jennings scored eight points in the second and Earl Boykins had seven as the Bucks rallied to take a 52-49 lead at the half.
Bargnani scored 12 points in the third and Evans made a layup with 4 seconds left in the quarter to tie it at 76 heading to the fourth.
Notes: Bayless was called for a flagrant foul after shoving Milwaukee's Jon Brockman into the stanchion on a fast break in the second. Brockman shot his free throws before leaving with an injured left shoulder. ... Bucks coach Scott Skiles said he's been asked to limit Redd to single digits in minutes as he gets back in game shape. Redd played 15 minutes Monday. ... Canadian ATP tennis player Milos Raonic attended the game.