TORONTO — Scottie Barnes had 17 points and 11 rebounds, RJ Barrett scored 19 points, and the Toronto Raptors overcame a 21-point deficit to defeat the struggling Orlando Magic 109-93 on Wednesday night.

Gradey Dick scored 17 points and Bruce Brown had 15 as Toronto snapped a four-game losing streak against Orlando.

The Raptors won for the first time this season when trailing at halftime. Toronto came in 0-23 in such games.

Dick had 10 points in the third, including two dunks, as the Raptors outscored Orlando 40-20 to turn a five-point halftime deficit into a 15-point advantage.

Paolo Banchero had 26 points and 12 rebounds to lead Orlando, which couldn’t hold on after taking leads of 10-0 and 32-11 in the opening period.

The Magic have lost four games in a row.

The last time the Raptors trailed by at least 21 points in the first quarter and rallied to win was a 93-85 home victory over the Dallas Mavericks on Jan. 22, 2014.

Kentavious Caldwell-Pope scored 20 points, Anthony Black had 17 and Wendell Carter Jr. fouled out with 10 points and 10 rebounds as the Magic lost for the sixth time in seven. The losses have followed a trend, as the Magic have been unable to hang on in the second halves to get a victory.

Orlando’s Cole Anthony sat because of an illness, and Jonathan Isaac played four-plus minutes before exiting because of illness.

After Isaac left the game, the Magic were playing with just eight players of the 16 on their roster, including two-way player Trevelin Queen.

Takeaways

Magic: Jalen Suggs (lower back) missed his ninth game in a row. He hasn’t played since leaving the court in a wheelchair during a Jan. 3 win at Toronto.

Raptors: Immanuel Quickley (left hip) sat for a fourth game in a row. Ochai Agbaji (right hand) was also unavailable.

Key moment

Toronto took its first lead, 60-59, on Davion Mitchell’s layup with 6 miutes, 52 seconds left in the third. The Raptors led 85-70 after three.

Key stat

Orlando made its first five 3-point attempts but shot 4-for-26 from distance the rest of the way.

Up next

Both teams play Thursday, when Orlando hosts the Portland Trail Blazers and Toronto visits the Atlanta Hawks.