Comments (7)
Interesting. On the Allegro4 version the code that blits the bitmap from the BBC onto the screen in vidalleg.c is rather different between Windows and Linux. The Windows code implements window re-sizing, scaling the output as appropriate, but the Linux code does not. The Linux code is also missing the PAL simulation. I did look to see if they could be made more similar but allocating a video bitmap on Linux crashes. AFAIK this is an Allegro bug or a bug in the particular backend Allegro4 uses.
On the Allegro 5 port there is now one set of video blit code with the same options on both platforms. It chooses an initial window size to get 1:1 and you can re-size it from there.
One test of your theory would be to save a screenshot from B-Em's own menu rather than via the desktop and compare.
from b-em.
See 1cb9b46
Checking the in-line function upscale_only at vidalleg.c line 161 it was upscaling - by two pixels.
from b-em.
Thanks for this. I've had a go with a simple test program to draw a sawtooth wave:
10MODE 0
20X%=0
30Y%=0
40IY%=4
50FOR I%=1 TO 1000
60PLOT 69,X%,Y%
70X%=X%+2
80Y%=Y%+IY%
90IF Y%=1020 OR Y%=0 THEN IY%=IY%*-1
100NEXT
I've attached screenshots of this from my Linux desktop:.
and from b-em's own screenshot feature (converted from BMP to PNG format using the 'convert' command line tool to keep github happy):
b-em's own screenshot has much more regular pixels, although it seems to omit the bottom-most row of pixels (the image is 640x510 and the rightmost bottom point of the sawtooth has its tip missing)
I'll see if I can do an Allegro 5 build later and try that.
from b-em.
Looks like 1cb9b46e368933eb6e850a49e3f0af1f2dd59b61has fixed this for Allegro4, thanks!
from b-em.
The bottom row of pixels is still missing on the b-em-generated screenshots, FWIW; shall I raise a separate issue for that?
from b-em.
Try the latest commit which should fix the failure to save the last line in a screenshot.
from b-em.
Works a treat, thanks!
from b-em.
Related Issues (20)
- choosing a new folder for VDFS doesn't start at the existing one on windows. HOT 4
- NMOS and CMOS 6502 emulations fail self-modifying JSR test HOT 1
- jstest: same name as another program + executables question
- Disable auto-pause when the debugger is active? HOT 1
- VDFS: OPENUP creates a new file if it doesn't already exist HOT 4
- Integra-B: CTRL-@-BREAK is not triggering reset HOT 4
- Add support for other Z80 CoPro ROM versions? HOT 8
- Improved memory handling for 68K co-pro HOT 16
- Emulation speed wrong and Screen is a flickering mess HOT 23
- Compiler error on macOS HOT 2
- Tube ULA: 2-byte R3 transfers misbehaving HOT 9
- Core dump on startup with e624e51 HOT 3
- Change in behaviour with bit-banged sound between releases 8761065 and 608eb15 HOT 8
- Request for help with an SDL Sound Issue
- Nula issues
- segmentation fault HOT 4
- Seg fault when selecting 32016 co-pro HOT 2
- LED bar to small on 4K display
- @-symbol not mapped with logical keyboard
- libssp-0.dll missing from release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from b-em.