This commit is contained in:
parent
ec197c1a1b
commit
8b7a11b714
8 changed files with 32 additions and 32 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
int main() {
|
||||
MwWidget window, image, image2, image3;
|
||||
MwLLPixmap px, px2, px3;
|
||||
MwPixmap px, px2, px3;
|
||||
|
||||
MwLibraryInit();
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ int main() {
|
|||
int len = sizeof(harvard) / sizeof(harvard[0]) - 1;
|
||||
int i;
|
||||
int index;
|
||||
MwLLPixmap px;
|
||||
MwPixmap px;
|
||||
|
||||
MwLibraryInit();
|
||||
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ static void MWAPI menu_handler(MwWidget handle, void* user, void* call) {
|
|||
int main() {
|
||||
int i, j;
|
||||
MwWidget f, w, b;
|
||||
MwLLPixmap px;
|
||||
MwPixmap px;
|
||||
int index;
|
||||
MwMenu m, m2;
|
||||
void* v;
|
||||
|
|
@ -383,5 +383,5 @@ int main() {
|
|||
|
||||
MwLoop(window);
|
||||
|
||||
MwLLDestroyPixmap(px);
|
||||
MwDestroyPixmap(px);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ static void MWAPI resize(MwWidget handle, void* user, void* client) {
|
|||
int main() {
|
||||
MwWidget w;
|
||||
int i;
|
||||
MwLLPixmap px[6];
|
||||
MwPixmap px[6];
|
||||
|
||||
MwLibraryInit();
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ static void MWAPI resize(MwWidget handle, void* user, void* client) {
|
|||
int main() {
|
||||
MwWidget w;
|
||||
int i;
|
||||
MwLLPixmap px[6];
|
||||
MwPixmap px[6];
|
||||
|
||||
MwLibraryInit();
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ void MWAPI activate(MwWidget handle, void* user, void* call) {
|
|||
|
||||
int main() {
|
||||
MwWidget tv;
|
||||
MwLLPixmap px;
|
||||
MwPixmap px;
|
||||
int i;
|
||||
void * p = NULL, *r;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ static void MWAPI resize(MwWidget handle, void* user, void* call) {
|
|||
|
||||
int main() {
|
||||
MwWidget w;
|
||||
MwLLPixmap px;
|
||||
MwPixmap px;
|
||||
|
||||
MwLibraryInit();
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ void MWAPI tick(MwWidget handle, void* user, void* call) {
|
|||
|
||||
if(render && w > 0 && h > 0) {
|
||||
unsigned char* buffer = malloc(w * h * 4);
|
||||
MwLLPixmap px;
|
||||
MwPixmap px;
|
||||
int j;
|
||||
|
||||
glReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
|
||||
|
|
@ -96,7 +96,7 @@ void MWAPI tick(MwWidget handle, void* user, void* call) {
|
|||
MwVaApply(window,
|
||||
MwNiconPixmap, px,
|
||||
NULL);
|
||||
MwLLDestroyPixmap(px);
|
||||
MwDestroyPixmap(px);
|
||||
|
||||
free(buffer);
|
||||
}
|
||||
|
|
@ -133,7 +133,7 @@ void MWAPI resize(MwWidget handle, void* user, void* call) {
|
|||
}
|
||||
|
||||
int main() {
|
||||
MwLLColor bgcolor, fgcolor;
|
||||
MwColor bgcolor, fgcolor;
|
||||
|
||||
MwLibraryInit();
|
||||
|
||||
|
|
@ -164,6 +164,6 @@ int main() {
|
|||
|
||||
MwLoop(window);
|
||||
|
||||
MwLLFreeColor(fgcolor);
|
||||
MwLLFreeColor(bgcolor);
|
||||
MwFreeColor(fgcolor);
|
||||
MwFreeColor(bgcolor);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue