git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/Core Libs - Fix CRT* file types
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin4_src
/
Server
/
video.cpp
diff --git
a/Usermode/Applications/axwin4_src/Server/video.cpp
b/Usermode/Applications/axwin4_src/Server/video.cpp
index
55e3acb
..
50686c6
100644
(file)
--- a/
Usermode/Applications/axwin4_src/Server/video.cpp
+++ b/
Usermode/Applications/axwin4_src/Server/video.cpp
@@
-57,20
+57,16
@@
void CVideo::GetDims(unsigned int& w, unsigned int& h)
void CVideo::BlitLine(const uint32_t* src, unsigned int dst_y, unsigned int dst_x, unsigned int width)
{
//_SysDebug("CVideo::BlitLine (%p, %i, %i, %i)", src, dst_y, dst_x, width);
void CVideo::BlitLine(const uint32_t* src, unsigned int dst_y, unsigned int dst_x, unsigned int width)
{
//_SysDebug("CVideo::BlitLine (%p, %i, %i, %i)", src, dst_y, dst_x, width);
- size_t cmdlen = sizeof(struct ptycmd_senddata)/4 + width;
+ //_SysDebugHex("CVideo::BlitLine", src, width*4);
+ size_t cmdlen = (sizeof(struct ptycmd_senddata) + width*4)/4;
//_SysDebug(" - Offset = %i, cmdlen = %i", (dst_y * m_width + dst_x) * 4, cmdlen);
struct ptycmd_senddata cmd = {
//_SysDebug(" - Offset = %i, cmdlen = %i", (dst_y * m_width + dst_x) * 4, cmdlen);
struct ptycmd_senddata cmd = {
- {PTY2D_CMD_SEND,
cmdlen & 0xFF, cmdlen>>8
},
+ {PTY2D_CMD_SEND,
uint8_t(cmdlen & 0xFF), uint16_t(cmdlen>>8)
},
(dst_y * m_width + dst_x)
};
SetBufFormat(PTYBUFFMT_2DCMD);
_SysWrite(m_fd, &cmd, sizeof(cmd));
_SysWrite(m_fd, src, width*4);
(dst_y * m_width + dst_x)
};
SetBufFormat(PTYBUFFMT_2DCMD);
_SysWrite(m_fd, &cmd, sizeof(cmd));
_SysWrite(m_fd, src, width*4);
-
- //SetBufFormat(PTYBUFFMT_FB);
- //_SysWriteAt(m_fd, (dst_y * m_width + dst_x) * 4, width * 4, src);
- //_SysSeek(m_fd, (dst_y * m_width + dst_x) * 4, SEEK_SET);
- //_SysWrite(m_fd, src, width * 4);
}
void CVideo::Flush()
}
void CVideo::Flush()
UCC
git Repository :: git.ucc.asn.au