summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 30d1d14)
raw | patch | inline | side by side (parent: 30d1d14)
author | Eric Wertz <ericdwertz@gmail.com> | |
Thu, 16 Mar 2017 13:13:33 +0000 (09:13 -0400) | ||
committer | Eric Wertz <ericdwertz@gmail.com> | |
Thu, 16 Mar 2017 13:13:33 +0000 (09:13 -0400) |
main.c | patch | blob | history |
index dd6821444940f7cb8fb09ee32c6db2e22fcd7109..c886012eed9b73a5014df6b8d8cda8ff49f56747 100644 (file)
--- a/main.c
+++ b/main.c
targetheight = targetwidth / (float)width * (float)height;
}
targetheight = targetwidth / (float)width * (float)height;
}
- if( targetwidth >= screen_width || targetheight <= screen_height )
+ if( targetwidth == screen_width )
{
//Scale width, crop height
tx1 = 0.0f;
{
//Scale width, crop height
tx1 = 0.0f;