Compare commits

...

2 Commits

Author SHA1 Message Date
yogiags86
d975c2164b Create c-cpp.yml 2024-01-26 08:00:23 +07:00
yogiags86
343cb8d130 Update settings.cpp
0.25 Resolution
2024-01-26 06:56:36 +07:00
2 changed files with 28 additions and 0 deletions

23
.github/workflows/c-cpp.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: C/C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck

View File

@@ -255,6 +255,11 @@ const char* TranslateCategory(Category category) {
void TranslateResolutionInfo(ResolutionSetup setup, ResolutionScalingInfo& info) {
info.downscale = false;
switch (setup) {
case ResolutionSetup::Res1_4X:
info.up_scale = 1;
info.down_shift = 2;
info.downscale = true;
break;
case ResolutionSetup::Res1_2X:
info.up_scale = 1;
info.down_shift = 1;