emscripten Humble Cloud interface
Edward Rudd
2014-09-16 b9b4e579dee236609d23e2f9566f5ad6a3a125c0

fix parameters for humble_get_player_size to be pointers not references.

2 files modified
4 ■■■■ changed files
client/library/humble_api.h 2 ●●● patch | view | raw | blame | history
client/test/main.cpp 2 ●●● patch | view | raw | blame | history
client/library/humble_api.h
@@ -26,7 +26,7 @@
     * Gets the allowable player size of the humble player.  Use this to restrict the size of the game in windowed mode.
     * returns 1 if the restriction should be enforced.. 0 otherwise
     */
    int humble_get_player_size(int& width, int& height);
    int humble_get_player_size(int *width, int *height);
#ifdef __cplusplus
};
client/test/main.cpp
@@ -70,7 +70,7 @@
    humble_init();
    int w, h;
    int ret = humble_get_player_size(w, h);
    int ret = humble_get_player_size(&w, &h);
    std::cout << "HumblePlayerSize Enabled: " << ret << " @ ( " << w << ", " << h << " )\n";