Skip to content

Commit

Permalink
Merge pull request #93 from sz3/old-app-hint-4c
Browse files Browse the repository at this point in the history
Switch encoder default back to 4C for now
  • Loading branch information
sz3 authored Feb 26, 2024
2 parents a0178c2 + e560c03 commit ae13549
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/exe/cimbar_send/send.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int main(int argc, char** argv)
("c,colorbits", "Color bits. [0-3]", cxxopts::value<int>()->default_value(turbo::str::str(colorBits)))
("e,ecc", "ECC level", cxxopts::value<unsigned>()->default_value(turbo::str::str(ecc)))
("f,fps", "Target FPS", cxxopts::value<unsigned>()->default_value(turbo::str::str(defaultFps)))
("m,mode", "Select a cimbar mode. B (the default) is new to 0.6.x. 4C is the 0.5.x config. [B,4C]", cxxopts::value<string>()->default_value("B"))
("m,mode", "Select a cimbar mode. B is new to 0.6.x. 4C is the 0.5.x config. [B,4C]", cxxopts::value<string>()->default_value("4C"))
("z,compression", "Compression level. 0 == no compression.", cxxopts::value<int>()->default_value(turbo::str::str(compressionLevel)))
("h,help", "Print usage")
;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/cimbar_js/cimbar_js.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace {
unsigned _ecc = cimbar::Config::ecc_bytes();
unsigned _colorBits = cimbar::Config::color_bits();
int _compressionLevel = cimbar::Config::compression_level();
bool _legacyMode = false;
bool _legacyMode = true;
}

extern "C" {
Expand Down
4 changes: 2 additions & 2 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@

<input style="display:none;" type="file" name="file_input" id="file_input" onchange="Main.fileInput(this);" />

<div id="nav-container" class="mode-b">
<div id="nav-container" class="mode-4c">
<div class="bg" onclick="Main.blurNav();"></div>
<button id="nav-button" tabindex="0" onclick="Main.clickNav();">
<span class="icon-bar"></span>
Expand All @@ -286,7 +286,7 @@
<li><a href="javascript:void(0)" onclick="Main.toggleFullscreen()">Fullscreen</a></li>
<hr>
<li><a class="mode-b" href="javascript:void(0)" onclick="Main.setMode('B')">Mode B</a></li>
<li><a class="mode-4c" href="javascript:void(0)" onclick="Main.setMode('4C')">Mode 4C</a></li>
<li><a class="mode-4c" href="javascript:void(0)" onclick="Main.setMode('4C')">4C <small>(old apps)</small></a></li>
<li class="small"><a href="https://github.com/sz3/libcimbar">github</a></li>
<li class="small"><a href="https://github.com/sz3/cfc/releases/latest">android app</a></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion web/sw.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var _cacheName = 'cimbar-js-v0.5.14';
var _cacheName = 'cimbar-js-v0.6.0';
var _cacheFiles = [
'/',
'/index.html',
Expand Down

0 comments on commit ae13549

Please sign in to comment.