Fix touch
This commit is contained in:
@@ -741,7 +741,6 @@ class PetitComputer
|
|||||||
glDepthMask(GL_TRUE);
|
glDepthMask(GL_TRUE);
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
SDL_GL_SwapWindow(window);
|
SDL_GL_SwapWindow(window);
|
||||||
}
|
|
||||||
auto renderticks = (SDL_GetTicks() - profile);
|
auto renderticks = (SDL_GetTicks() - profile);
|
||||||
if(renderprofile) writeln(renderticks);
|
if(renderprofile) writeln(renderticks);
|
||||||
int mousex, mousey;
|
int mousex, mousey;
|
||||||
@@ -805,6 +804,7 @@ class PetitComputer
|
|||||||
touchPosition = Touch(0, mousex, mousey);
|
touchPosition = Touch(0, mousex, mousey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
while (SDL_PollEvent(&event))
|
while (SDL_PollEvent(&event))
|
||||||
{
|
{
|
||||||
switch (event.type)
|
switch (event.type)
|
||||||
|
|||||||
Reference in New Issue
Block a user