This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// | |
// Created by Fabio Reis on 16/12/2019. | |
// | |
#include <SDL2/SDL.h> | |
int main(int, char**) { | |
if (SDL_Init(SDL_INIT_VIDEO) != 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// | |
// Created by Fabio Reis on 16/12/2019. | |
// | |
#include <SDL2/SDL.h> | |
int main(int, char**) { | |
if (SDL_Init(SDL_INIT_VIDEO) != 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Script that will use the provided Android App Bundle (.aab) and change its version code and version name to the provided values, avoiding re-building the whole .aab. | |
# Run this script with: sh rollback.sh your_project.aab android_signing_key.key key_alias key_pwd version_code version_name | |
# | |
# Necessary setup: | |
# | |
# jarsigner - This binary should exist in the path | |
# | |
# Configuration.proto and Resources.proto can be found in aapt2's github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var context = canvas.getContext("2d"); | |
context.drawColoredImage = function(img, sx, sy, sw, sh, dx, dy, dw, dh, r, g, b) { | |
var buffer: Dynamic = Browser.document.createElement('canvas'); | |
buffer.width = dw; | |
buffer.height = dh; | |
var bx = buffer.getContext('2d'); | |
// fill offscreen buffer with the tint color | |
bx.fillStyle = 'rgb(' + r + ',' + g + ',' + b + ')'; | |
bx.fillRect(0, 0, dw, dh); |