Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memory problem with hardware acceleration. [Resolved] Thanks Mark!
#2
Well I am not buying your reason not to use _FreeImage:
Code: (Select All)
Sub PSL (y!, x, t$)
    _PrintString ((x - 1) * _FontWidth, (y! - 1) * _FontHeight), t$
    Overlay_Hardware = _CopyImage(Overlay, 33)
    _PutImage (0, 0), Overlay_Hardware
    _FreeImage Overlay_Hardware
End Sub

Sub underline (y, x, uflag)
    Static ucnt
    ucnt = -ucnt - 1
    If ucnt Or uflag Then
        Line ((x - 1) * _FontWidth, y * _FontHeight)-((x - 1) * _FontWidth + 12, y * _FontHeight), _RGB(24, 24, 24), BF
    Else
        Line ((x - 1) * _FontWidth, y * _FontHeight)-((x - 1) * _FontWidth + 12, y * _FontHeight), Yellow, BF
    End If

    Overlay_Hardware = _CopyImage(Overlay, 33)
    _PutImage (0, 0), Overlay_Hardware
    _FreeImage Overlay_Hardware
End Sub

Memory seems to be holding steady.

This seems pretty complicated way to get flashing cursor, can't it be done in screen 0 and if not in Screen 0 use a line?
OTOH I don't follow all that you do but you put together some nice looking screens.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
RE: Memory problem with hardware acceleration. - by bplus - 10-17-2022, 07:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  about Hardware Images and _DisplayOrder,Help! qbfans 11 574 02-11-2026, 07:10 AM
Last Post: SMcNeill
  I'm looking for suggestions to solve the problem! Petr 10 682 02-05-2026, 04:56 PM
Last Post: ahenry3068
  Nth problem with hardware images Ikerkaz 9 503 01-23-2026, 02:58 PM
Last Post: bplus
  Install problem...... jssantoro 6 397 12-17-2025, 08:31 PM
Last Post: madscijr
  Hardware images questions Dav 5 477 12-04-2025, 04:18 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)