allow right click to close notifications too

This commit is contained in:
jacob1 2013-01-05 20:03:59 -05:00
parent bd3011959a
commit 8f4d936de8
2 changed files with 7 additions and 4 deletions

View File

@ -36,16 +36,15 @@ public:
}
else
{
int yTop = ry, i, j, yBottom;
int yTop = ry, yBottom, i, j;
for (i = 0; i <= rx; i++)
{
while (pow(i-rx,2.0f)*pow(ry,2.0f) + pow(yTop-ry,2.0f)*pow(rx,2.0f) <= pow(rx,2.0f)*pow(ry,2.0f))
yTop = yTop + 1;
yTop = yTop - 1;
yTop++;
yBottom = 2*ry - yTop;
for (int j = 0; j <= ry*2; j++)
{
if (j >= yBottom && j <= yTop)
if (j > yBottom && j < yTop)
{
bitmap[j*(size.X)+i] = 255;
bitmap[j*(size.X)+2*rx-i] = 255;

View File

@ -1590,6 +1590,10 @@ void GameView::NotifyNotificationsChanged(GameModel * sender)
void ActionCallback(ui::Button * sender)
{
v->c->RemoveNotification(notification);
}
void AltActionCallback(ui::Button * sender)
{
v->c->RemoveNotification(notification);
}
};