Site Tools


documentation:development:opera:pf25:ppgfldr:ggsfldr:gpgfldr:4gpgj

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:development:opera:pf25:ppgfldr:ggsfldr:gpgfldr:4gpgj [2022/11/07 14:49] – created - external edit 127.0.0.1documentation:development:opera:pf25:ppgfldr:ggsfldr:gpgfldr:4gpgj [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
 +====== Controlling Pixel Interpolation ======
 +
 +----
 +
 +In its default state, the display generator practices full pixel interpolation for all 320-by-240 pixels it receives from a screen. If you'd like to turn off interpolation for that "crispy pixels" look within a screen, use these two calls:
 +
 +<code>
 +int32 DisableHAVG( Item screenItem )
 +
 +int32 DisableVAVG( Item screenItem )
 +
 +</code>
 +
 +The first call disables horizontal interpolation for the specified screen; the second call disables vertical interpolation for the specified screen. If either call is successful, it returns a zero. If unsuccessful, it returns a negative number (an error code).
 +
 +To turn interpolation back on, use these two calls:
 +
 +<code>
 +int32 EnableHAVG( Item screenItem )
 +
 +int32 EnableVAVG( Item screenItem )
 +
 +</code>
 +
 +The first call enables horizontal interpolation for the specified screen; the second call enables vertical interpolation for the specified screen. If either call is successful, it returns a 0. If unsuccessful, it returns a negative number (an error code).
 +