diff options
author | 浅倉麗子 | 2020-05-20 01:06:42 -0400 |
---|---|---|
committer | 浅倉麗子 | 2020-05-20 01:06:42 -0400 |
commit | 20d8bf0dd9a8bb61f808fc850a6a4a97cb99c2e8 (patch) | |
tree | 4866b2f60251b93cd5e58acaf14ae5f8be584db1 | |
parent | Allow enable HD framebuffer sizes on the Vita (diff) | |
download | sharpscale-20d8bf0dd9a8bb61f808fc850a6a4a97cb99c2e8.tar.gz |
Add HD resolutions to scaling test
-rw-r--r-- | scaling-test/CMakeLists.txt | 6 | ||||
-rw-r--r-- | scaling-test/main.c | 9 |
2 files changed, 9 insertions, 6 deletions
diff --git a/scaling-test/CMakeLists.txt b/scaling-test/CMakeLists.txt index 04f04d5..30dd94c 100644 --- a/scaling-test/CMakeLists.txt +++ b/scaling-test/CMakeLists.txt @@ -23,7 +23,7 @@ if(NOT DEFINED CMAKE_TOOLCHAIN_FILE) endif() endif() -project(scalingtest LANGUAGES C) +project(sharpscale_scaling_test LANGUAGES C) include("$ENV{DOLCESDK}/share/dolce.cmake" REQUIRED) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -O3 -std=c99") @@ -32,9 +32,9 @@ set(ELF eboot.elf) set(SELF eboot.bin) set(VPK "${PROJECT_NAME}.vpk") -set(TITLE_NAME "Scaling test") +set(TITLE_NAME "Sharpscale Scaling Test") set(TITLE_ID "AKRK00004") -set(TITLE_VER "01.02") +set(TITLE_VER "01.03") add_executable("${ELF}" main.c diff --git a/scaling-test/main.c b/scaling-test/main.c index 9359a96..df8ddd1 100644 --- a/scaling-test/main.c +++ b/scaling-test/main.c @@ -29,8 +29,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. #define RED 0xFF0000FF #define BLUE 0xFFFF0000 -#define FB_WIDTH 960 -#define FB_HEIGHT 544 +#define FB_WIDTH 1920 +#define FB_HEIGHT 1080 #define FB_LEN (ALIGN(FB_WIDTH, 64) * FB_HEIGHT * 4) typedef struct { @@ -38,12 +38,15 @@ typedef struct { int h; } res_t; -#define FB_RES_LEN 4 +#define FB_RES_LEN 7 static res_t fb_res[FB_RES_LEN] = { {480, 272}, {640, 368}, {720, 408}, {960, 544}, + {1280, 720}, + {1440, 1080}, + {1920, 1080}, }; static void render(int *fb_base, int width, int pitch, int height) { |