mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-09 16:18:20 +00:00
[host] dxgi: remove uneeded variable + minor cosmetic changes
This commit is contained in:
parent
7321ca6768
commit
b14aad7118
@ -155,7 +155,7 @@ struct DXGIInterface
|
||||
int lastPointerX, lastPointerY;
|
||||
bool lastPointerVisible;
|
||||
|
||||
struct FrameDamage frameDamage[LGMP_Q_FRAME_LEN];
|
||||
FrameDamage frameDamage[LGMP_Q_FRAME_LEN];
|
||||
};
|
||||
|
||||
// locals
|
||||
@ -1428,14 +1428,16 @@ static CaptureResult dxgi_getFrame(FrameBuffer * frame, int frameIndex)
|
||||
DEBUG_ASSERT(this);
|
||||
DEBUG_ASSERT(this->initialized);
|
||||
|
||||
Texture * tex = &this->texture[this->texRIndex];
|
||||
Texture * tex = &this->texture[this->texRIndex];
|
||||
FrameDamage * damage = &this->frameDamage[frameIndex];
|
||||
|
||||
struct FrameDamage * damage = this->frameDamage + frameIndex;
|
||||
bool damageAll = tex->damageRectsCount == 0 || damage->count < 0 ||
|
||||
damage->count + tex->damageRectsCount > KVMFR_MAX_DAMAGE_RECTS;
|
||||
|
||||
if (damageAll)
|
||||
if (tex->damageRectsCount == 0 ||
|
||||
damage->count < 0 ||
|
||||
damage->count + tex->damageRectsCount > KVMFR_MAX_DAMAGE_RECTS)
|
||||
{
|
||||
// damage all
|
||||
framebuffer_write(frame, tex->map, this->pitch * this->dataHeight);
|
||||
}
|
||||
else
|
||||
{
|
||||
memcpy(damage->rects + damage->count, tex->damageRects,
|
||||
|
Loading…
Reference in New Issue
Block a user