diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/controller/RootController.kt b/client/src/main/kotlin/org/hso/texturesyncclient/controller/RootController.kt index 64b473d..f9b1f34 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/controller/RootController.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/controller/RootController.kt @@ -51,7 +51,7 @@ class RootController : Controller() { val uuid = UUID.randomUUID() val format = if (File(path).extension.toLowerCase() == "png") TextureFormat.PNG else TextureFormat.JPEG val bimg = ImageIO.read(File(path)) //image for obtaining resolution - val resolution = Pair(bimg.height, bimg.width) + val resolution = Pair(bimg.width, bimg.height) val cal = Calendar.getInstance() //calendar obj with current time val hash = Sha256(data) diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/MainViewController.kt b/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/MainViewController.kt index fc2ae83..59d7e0c 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/MainViewController.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/MainViewController.kt @@ -60,7 +60,7 @@ class MainViewController : Controller() { } } - // DetailView actions + // MainView actions fun cvSearchAction(tags: ObservableList) { // show spinner, block ui diff --git a/server/texture-sync-server/src/search/query_filter.rs b/server/texture-sync-server/src/search/query_filter.rs index 22bcf98..e877af6 100644 --- a/server/texture-sync-server/src/search/query_filter.rs +++ b/server/texture-sync-server/src/search/query_filter.rs @@ -66,7 +66,7 @@ impl QueryFilter { SpecialInName(name) => Score::RequiredMatch( // - texture.name.contains(name), + texture.name.to_lowercase().contains(&name.to_lowercase()), ), SpecialBeforeDate(date) => Score::RequiredMatch(texture.added_on <= *date),