mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.developing rainbow
git-svn-id: svn://ultimatepp.org/upp/trunk@3582 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c4953990f2
commit
67d68eecae
2 changed files with 221 additions and 221 deletions
|
|
@ -48,7 +48,7 @@ int main(int argc, const char **argv, const char **envptr) { \
|
|||
FBInit("/dev/fb0"); \
|
||||
GuiMainFn_(); \
|
||||
UPP::Ctrl::CloseTopCtrls(); \
|
||||
UPP::UsrLog("---------- About to delete this log of WinFB..."); \
|
||||
UPP::UsrLog("---------- About to delete this log of LinuxFB..."); \
|
||||
UPP::DeleteUsrLog(); \
|
||||
return UPP::GetExitCode(); \
|
||||
} \
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ void FBInit(const String& fbdevice)
|
|||
// Map the device to memory
|
||||
fbp = (char *)mmap(0, screensize, PROT_READ | PROT_WRITE, MAP_SHARED,
|
||||
fbfd, 0);
|
||||
if ((int)fbp == -1) {
|
||||
if ((intptr_t)fbp == -1) {
|
||||
printf("Error: failed to map framebuffer device to memory.\n");
|
||||
exit(4);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue