changeset: 5278:b4b71ec2af73

tag: tip
user: Martin Decky <martin@decky.cz>
date: Sat Feb 12 22:27:14 2011 +0100
summary: fix typo (assigning height value into displayrect.w instead of displayrect.h)
This commit is contained in:
Sam Lantinga 2011-02-12 17:36:09 -08:00
parent bb1d345990
commit 9526c9da70

View file

@ -538,7 +538,7 @@ main(int argc, char **argv)
case SDL_WINDOWEVENT:
if (event.window.event == SDL_WINDOWEVENT_RESIZED) {
displayrect.w = window_w = event.window.data1;
displayrect.w = window_h = event.window.data2;
displayrect.h = window_h = event.window.data2;
}
break;
case SDL_MOUSEBUTTONDOWN: