Giter VIP home page Giter VIP logo

isysxp / tek40xx Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 93.86 MB

A Tektronix 4010 emulator for Linux, Windows and MacOSX.

C 76.42% Makefile 2.24% HTML 5.41% Perl 0.29% CMake 0.72% Shell 5.63% Batchfile 0.11% M4 0.56% Roff 4.49% C++ 2.12% Pascal 0.13% Java 0.20% Objective-C 1.30% Python 0.01% Assembly 0.04% DIGITAL Command Language 0.05% Awk 0.21% Module Management System 0.01% CSS 0.05% Gnuplot 0.02%
4010 4014 emulator tektronix

tek40xx's People

Contributors

isysxp avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kc5vdj

tek40xx's Issues

Will not compile due to linker error

The error is as following:

gcc -o tek40xx tek_main.o tek_display.o tek_telnet.o tek_drawline.o font-5x7.o `sdl2-config --libs` -lm
/usr/bin/ld: tek_display.o:~/Tek40xx/tek_video.h:103: multiple definition of `tek_socket'; tek_main.o:~/Tek40xx/tek_video.h:103: first defined here
/usr/bin/ld: tek_drawline.o:~/Tek40xx/tek_video.h:103: multiple definition of `tek_socket'; tek_main.o:~/Tek40xx/tek_video.h:103: first defined here
collect2: error: ld returned 1 exit status
make: *** [makefile:12: tek40xx] Error 1

note that after this error is given, issuing gcc -o tek40xx tek_main.o tek_display.o tek_telnet.o tek_drawline.o font-5x7.o \sdl2-config --libs` -lm -Wl,--allow-multiple-definition` will compile the binary fine.

write through graphics lines on Mac fade to "darker than background" and those pixels stay stuck off

Using tek40xx to connect to some emulated php-11 system and I have written code that uses "write through graphics" mode to draw animations. The first lines drawn look fine, but they fade to darker than the greenish BACKGROUND value; then when another write through graphics line is drawn, it will not light up pixels that were previously faded to "darker than background". This causes repeating animation drawings to basically be mostly black and not drawing.

I have found that I can make the problem go away if I change the alphablend function in tel_drawline.c from this:

if (!wrthru || p[1] == BACKGROUND) {

to this:

if (!wrthru || p[1] <= BACKGROUND) {

the repeat animations now work fine. The write through lines still fade to darker-than-background which seems like a separate issue. I have tried changing the value of BACKGROUND lower but anything below about 20 seems to hang the program.
Screen Shot 2024-02-20 at 5 36 51 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.