Эх сурвалжийг харах

Launchpad::setColor(): position constraint fixed

Fabian Peter Hammerle 11 жил өмнө
parent
commit
6e8d8d3ce7
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      Launchpad.cpp

+ 1 - 1
Launchpad.cpp

@@ -78,7 +78,7 @@ const LaunchpadColor& Launchpad::getColor(unsigned char x, unsigned char y) cons
 
 void Launchpad::setColor(unsigned char x, unsigned char y, const LaunchpadColor& color)
 {
-	if(x >= width || y >= height || (x == 8) && (y == 8))
+	if(x >= width || y >= height || (x == 8 && y == 8))
 	{
 		throw RtMidiError(
 			"specified launchpad position is out of range",