![]() |
|
Enlarging window for older BAS programs (ie. Screen 7 mode) - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Enlarging window for older BAS programs (ie. Screen 7 mode) (/showthread.php?tid=4260) |
Enlarging window for older BAS programs (ie. Screen 7 mode) - paulel - 12-24-2025 I was wondering if it is somehow possible to enlarge the window for older BAS programs? Such as ones that use those older screen modes such as SCREEN 7. When i run them, the window is quite small, playable, but small. RE: Enlarging window for older BAS programs (ie. Screen 7 mode) - Petr - 12-24-2025 Hi. Try _FullScreen, or Alt + Enter after run. RE: Enlarging window for older BAS programs (ie. Screen 7 mode) - bplus - 12-24-2025 Yes you can now create custom sized screens Screen _NewImage(myScreenWidthPixels%, myScreenHeightPixels%, MyColorPallet%) MyColorpallet% = 12, 256, 32 12 is 16 color old QB colors 256 is pallet stuff I dont use so cant describe well 32 is millions of color options using _RGB32(r, g, b, alpha) Oh yes! for old programs use Petr's suggestion but you might need a little _Delay after Screen statement before going full screen. warning: you may experience some distortion of circles and squares. RE: Enlarging window for older BAS programs (ie. Screen 7 mode) - ahenry3068 - 12-24-2025 (12-24-2025, 07:32 PM)bplus Wrote: Yes you can now create custom sized screens I've been doing a lot of Palette Stuff so I'll describe 256. In 32 bit mode if you do a _MEMIMAGE the Image buffer pixels map to an Array of Long each Pixel stored in RGBA format. In 256 palette mode Each the Pixels map to an array of _unsigned _byte and the Palette holds 256 (Indice's 0 to 255) Palette Descriptors in Long RGBA format The Pixel Bytes are an Index into the Palette ! The Palette values can be set with _PaletteColor Index, RGBAVal and retrieved with the _PaletteColor(Indx) function ! If doing a _LoadImage("image.bmp", 256) a default palette is used for image mapping If doing a _LoadImage("image.bmp", 257) a more optimized adaptive palette is used ! RE: Enlarging window for older BAS programs (ie. Screen 7 mode) - SMcNeill - 12-24-2025 $RESIZE:STRETCH $RESIZE:SMOOTH Add either of those commands to the top of your program and you can grab and resize the window to whatever size you want once compiled. RE: Enlarging window for older BAS programs (ie. Screen 7 mode) - paulel - 12-24-2025 (12-24-2025, 08:52 PM)SMcNeill Wrote: $RESIZE:STRETCHThanks. Just what i was wanting. |