I am calling a resizing routine with
Code: Select all
ON MOVE PROCresize(@msg%,@lparam%) : RETURN
Code: Select all
DEF PROCresize(action%,pixels%)
IF action% <> 5 THEN ENDPROC
screen_width% = pixels% AND &FFFF
screen_height% = pixels% >>> 16
bmi.Header.Size% = DIM(BITMAPINFOHEADER{})
bmi.Header.Width% = screen_width%
bmi.Header.Height% = screen_height%
bmi.Header.Planes.l& = 1
bmi.Header.BitCount.l& = 32
SYS "CreateDIBSection", @memhdc%, bmi{}, 0, ^bits%, 0, 0 TO hbitmap%
IF hbitmap%=0 ERROR 100, "Couldn't create DIBSection"
SYS "SelectObject", @memhdc%, hbitmap% TO oldhbm%
SYS "DeleteObject", oldhbm%
SYS "InvalidateRect", @hwnd%, 0, 0
VDU 23,22,screen_width%;screen_height%;10,20,16,0
VDU 26
PROC_imgInit
PROConResize : REM(reset any variables that need to and re-render screen with imglib
*FX 15,1
ENDPROC
Can someone please help to code the resize correctly
Kind regards Ric