Jordan Hargraphix SvgaBGI goes MIT license (Announce)
> Not yet. Just started looking at it and applying tight changes. Mainly
> enabling it to build with TASM 5 too. Of course you can fork it or submit a
> patch.
Unfortunately I don't have time now to contribute with a patch and, to be honest, my interest in it is quite low, but the problem arises from the fact that it uses "MaxX" instead of "BytesPerLine" in the calculations needed to get the video offset (and bank). You can see a couple of examples (taken at random) below, "MaxX" should be replaced with "BytesPerLine" to make it work properly in cases where the number of bytes per scan line is larger than the width in pixels (I have a couple of video cards that make the problem obvious in mode 800x600).
PROC PutPixel
add bx, [PageOfs] ; Bildschirmseiten-Korrektur
mov cl, dl ; Farbe retten
xchg ax, bx ; Y in ax, X in bx
mul [MaxX] ; * Zeilenl„nge
add bx, ax ; + Offset
adc dl, 0 ; Segment-šberlauf
mov [Seg64], dl ; Segment merken
call [SegSelect] ; Segment einstellen
mov ds, [VideoSeg] ; Videosegment holen
mov [bx], cl ; Byte schreiben
ret
ENDP PutPixel
PROC RestoreBitmap NEAR
[...]
; Errechnen wieviel bei Erreichen des Punktes X2+1 dazugez„hlt werden muá um
; X1 in der n„chsten Linie zu erreichen
mov cx, [MaxX]
sub cx, ax
push cx ; Wert retten
[...]
ENDP RestoreBitMap
---
Glory to God for all things
Complete thread:
- Jordan Hargraphix SvgaBGI goes MIT license - rr, 19.12.2020, 14:58 (Announce)
- Jordan Hargraphix SvgaBGI goes MIT license - DosWorld, 19.12.2020, 15:25
- Jordan Hargraphix SvgaBGI goes MIT license - RayeR, 19.12.2020, 19:07
- Jordan Hargraphix SvgaBGI goes MIT license - marcov, 21.12.2020, 14:40
- Jordan Hargraphix SvgaBGI goes MIT license - DosWorld, 22.12.2020, 15:40
- Jordan Hargraphix SvgaBGI goes MIT license - marcov, 22.12.2020, 22:49
- Jordan Hargraphix SvgaBGI goes MIT license - DosWorld, 22.12.2020, 15:40
- Jordan Hargraphix SvgaBGI goes MIT license - Guti, 21.12.2020, 09:51
- Jordan Hargraphix SvgaBGI goes MIT license - Guti, 23.12.2020, 16:48
- Jordan Hargraphix SvgaBGI goes MIT license - Khusraw, 23.12.2020, 18:40
- Jordan Hargraphix SvgaBGI goes MIT license - Guti, 24.12.2020, 08:46
- Jordan Hargraphix SvgaBGI goes MIT license - Khusraw, 24.12.2020, 11:25
- Jordan Hargraphix SvgaBGI goes MIT license - Guti, 24.12.2020, 12:28
- Jordan Hargraphix SvgaBGI goes MIT license - Khusraw, 24.12.2020, 12:46
- Jordan Hargraphix SvgaBGI goes MIT license - Guti, 24.12.2020, 12:28
- Jordan Hargraphix SvgaBGI goes MIT license - Khusraw, 24.12.2020, 11:25
- Jordan Hargraphix SvgaBGI goes MIT license - Guti, 24.12.2020, 08:46
- Jordan Hargraphix SvgaBGI goes MIT license - Khusraw, 23.12.2020, 18:40
- Jordan Hargraphix SvgaBGI goes MIT license - Guti, 23.12.2020, 16:48
- Jordan Hargraphix SvgaBGI goes MIT license - DosWorld, 19.12.2020, 15:25