From 692aae96b39ba48c6c9582111ae7c23bd7e36c64 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Tue, 28 Oct 2025 13:50:07 +0100 Subject: [PATCH] =?UTF-8?q?-=20Commit=20perque=20git=20est=C3=A0=20loc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index 33d9b9c..8d28ff8 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -6,15 +6,15 @@ int main(int argc, char *argv[]) draw::loadPalette("data/palette/sweetie-16.pal"); auto tex = draw::getTexture("data/tilesets/standard.gif"); draw::setSource(tex.texture); - auto mapa = draw::createTexture("mapa", 256, 192, SDL_TEXTUREACCESS_TARGET); + auto mapa = draw::createTexture("mapa", 256, 128, SDL_TEXTUREACCESS_TARGET); draw::setDest(mapa.texture); - for (int y=0; y<24; ++y) + for (int y=0; y<16; ++y) for (int x=0; x<32; ++x) draw::draw(x*8, y*8, 8, 8, 0, 0, 8, 8); draw::setDest(nullptr); draw::fillRect(0,0,1280,960, 0, 0, 255, 255); draw::setSource(mapa.texture); - draw::draw(128, 96, 1024, 768, 0, 0, 256, 192); + draw::draw(128, 224, 1024, 512, 0, 0, 256, 128); draw::fillRect(0,100,40,760, 255, 255, 255, 128); draw::present();