Skip to content

Commit

Permalink
Support for xxhdpi and xxhdpi (!) devices
Browse files Browse the repository at this point in the history
  • Loading branch information
re-sounding committed Nov 23, 2013
1 parent ced4e41 commit 5e0b3dd
Show file tree
Hide file tree
Showing 49 changed files with 11 additions and 5 deletions.
Binary file added assets/clearOff_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/clearOff_x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/clearOn_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/clearOn_x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/forward_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/forward_x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fxCircleEmpty_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fxCircleEmpty_x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fxCircleToggle_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fxCircleToggle_x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fxClearOff_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fxClearOff_x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fxClearOn_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fxClearOn_x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fxFilled_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fxFilled_x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/inner_circle_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/inner_circle_x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/less_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/less_x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/line_circle_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/line_circle_x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/loadOff_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/loadOff_x400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/loadOn_x300.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/loadOn_x400.png
Binary file added assets/more_x300.png
Binary file added assets/more_x400.png
Binary file added assets/outer_circle_x300.png
Binary file added assets/outer_circle_x400.png
Binary file added assets/play_x300.png
Binary file added assets/play_x400.png
Binary file added assets/reverse_x300.png
Binary file added assets/reverse_x400.png
Binary file added assets/saveOff_x300.png
Binary file added assets/saveOff_x400.png
Binary file added assets/saveOn_x300.png
Binary file added assets/saveOn_x400.png
Binary file added assets/settingsOff_x300.png
Binary file added assets/settingsOff_x400.png
Binary file added assets/settingsOn_x300.png
Binary file added assets/settingsOn_x400.png
Binary file added assets/shareOff_x300.png
Binary file added assets/shareOff_x400.png
Binary file added assets/shareOn_x300.png
Binary file added assets/shareOn_x400.png
Binary file added assets/stop_x300.png
Binary file added assets/stop_x400.png
16 changes: 11 additions & 5 deletions src/com/twobigears/circlesynth/SynthCircle.java
Expand Up @@ -416,15 +416,21 @@ public void setup() {
float densityR = dm.density;

// set denity scale value and suffix for image resources
if (densityR > 0.5 && densityR <= 1.2) {
density = (float) 1;
if (densityR <= 1.2) {
density = 1f;
resSuffix = "_x100";
} else if (densityR > 1.2 && densityR <= 1.6) {
density = (float) 1.5;
density = 1.5f;
resSuffix = "_x150";
} else if (densityR > 1.6) {
density = (float) 2;
} else if (densityR > 1.6 && densityR <= 2.5) {
density = 2f;
resSuffix = "_x200";
} else if (densityR > 2.5 && densityR < 3.5) {
density = 3f;
resSuffix = "_x300";
} else if (densityR >= 3.5) {
density = 4f;
resSuffix = "_x400";
}

// load images
Expand Down

0 comments on commit 5e0b3dd

Please sign in to comment.