#include "SelectionManager.h" char SelectionManager::sSelection[P][P]; rgbaColor SelectionManager::sColor[P][P]; char SelectionManager::sTrans[P][P]; static rgbaColor black = { {0,0,0,255} }; void SelectionManager::clearSelection() { for( int y=0; y maxX ) { maxX = x; } if( y > maxY ) { maxY = y; } } } } intPair result = { ( minX + maxX ) / 2, ( minY + maxY ) / 2 }; return result; }